Fix crash when creating rando files and autosave is enabled (#1550)
This commit is contained in:
@@ -2000,6 +2000,7 @@ s32 func_800C0DB4(GlobalContext* globalCtx, Vec3f* pos) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Gameplay_PerformSave(GlobalContext* globalCtx) {
|
void Gameplay_PerformSave(GlobalContext* globalCtx) {
|
||||||
|
if (globalCtx != NULL) {
|
||||||
Gameplay_SaveSceneFlags(globalCtx);
|
Gameplay_SaveSceneFlags(globalCtx);
|
||||||
gSaveContext.savedSceneNum = globalCtx->sceneNum;
|
gSaveContext.savedSceneNum = globalCtx->sceneNum;
|
||||||
if (gSaveContext.temporaryWeapon) {
|
if (gSaveContext.temporaryWeapon) {
|
||||||
@@ -2017,3 +2018,4 @@ void Gameplay_PerformSave(GlobalContext* globalCtx) {
|
|||||||
Overlay_DisplayText(3.0f, "Game Saved");
|
Overlay_DisplayText(3.0f, "Game Saved");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user