Originally posted by Martin Gühmann
You have a text editor like notepade with a basic find function. You could use it to look for log.
You have a text editor like notepade with a basic find function. You could use it to look for log.
. The 3 new members were just earlier in the load process, so I found those first. After removing the 3 g members, the player.government one was exposed quite easily. After repairing this by commenting out the 4 AddMember statements in SlicBuiltin.cpp, loading old saves and starting scenarios works again.
. The 3 new members were just earlier in the load process, so I found those first. After removing the 3 g members, the player.government one was exposed quite easily. After repairing this by commenting out the 4 AddMember statements in SlicBuiltin.cpp, loading old saves and starting scenarios works again.
#if !defined(ACTIVISION_ORIGINAL) //Added by Martin Gühmann to prevent //the game from accessing an invalid //area of memory, plain arrays don't //have out of bounds array, so accessing //g_player[-1] may give you everything. //It is not very probably that you get 0. if (owner == -1) return GEV_HD_Continue; #endif Player *owner_player = g_player[owner]; if (owner_player == NULL || owner_player->GetGaiaController() == NULL) return GEV_HD_Continue;
.
Comment