Regarding this:
From this problem:
g_player[m_owner] being NULL would make g_player[m_owner]->GetCivilisation()->GetCityStyle() crash, but there are more possibilities.
Use the debugger to check if maybe
From this problem:
Originally posted by E
putting a
doesn't work either. But this code used to work before 709 so I think a MSVC6++ compatibility was broken. Fortunately this crash can be avoided by having the userprofile for sectarianhappiness to be off. But this line is the same as cultureonly units and other stuff throughout the code so something is broken.
putting a
Code:
if (g_player[m_owner] != NULL) {
Use the debugger to check if maybe
- m_owner is "invalid" (e.g. PLAYER_UNASSIGNED)
- g_player[m_owner] is OK, but GetCivilisation returns NULL
Comment