You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the game is saved while Lara is in the following animation and then reloaded, a crash occurs. This is present in TombATI as well as T1M (found by Radgryd during randomizer testing).
Saving during Lara's normal animation doesn't lead to a crash.
The cause I think is that while spaz_effect_count and spaz_effect are saved, only spaz_effect_count is restored.
The crash seems to occur below as g_Lara.spaz_effect_count is used in the condition, but g_Lara.spaz_effect is assumed to be set.
Looks like it's a NULL pointer issue. Just trying to print g_Lara.spaz_effect->pos.x on load causes a crash. spaz_effect gets set to FX_INFO *fx = &g_Effects[fx_num]; depending on what caused it. Looks like that isn't being saved and restored properly in legacy or new save format.
If the game is saved while Lara is in the following animation and then reloaded, a crash occurs. This is present in TombATI as well as T1M (found by Radgryd during randomizer testing).
Saving during Lara's normal animation doesn't lead to a crash.
The cause I think is that while
spaz_effect_count
andspaz_effect
are saved, onlyspaz_effect_count
is restored.The crash seems to occur below as
g_Lara.spaz_effect_count
is used in the condition, butg_Lara.spaz_effect
is assumed to be set.https://github.com/LostArtefacts/Tomb1Main/blob/develop/src/game/lara/lara_control.c#L158
The text was updated successfully, but these errors were encountered: