Skip to content

Commit

Permalink
Endian fix for saving/loading games in TD as Nod.
Browse files Browse the repository at this point in the history
  • Loading branch information
isojalka authored and OmniBlade committed Jun 1, 2023
1 parent d68ee95 commit 538f4b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiberiandawn/saveload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ void Decode_All_Pointers(void)
/*
** PlayerPtr.
*/
PlayerPtr = HouseClass::As_Pointer(*((HousesType*)&PlayerPtr));
PlayerPtr = HouseClass::As_Pointer((HousesType)(intptr_t)PlayerPtr);
Whom = PlayerPtr->Class->House;
switch (PlayerPtr->Class->House) {
case HOUSE_GOOD:
Expand Down

0 comments on commit 538f4b0

Please sign in to comment.