mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-29 19:18:58 -07:00
fix: ensure play
isn't null when reading from it (#2115)
Co-authored-by: briaguya <briaguya>
This commit is contained in:
parent
025e18e7e5
commit
fa4ffb5913
1 changed files with 1 additions and 1 deletions
|
@ -2704,7 +2704,7 @@ u8 Item_CheckObtainability(u8 item) {
|
|||
}
|
||||
|
||||
void PerformAutosave(PlayState* play, u8 item) {
|
||||
if (CVar_GetS32("gAutosave", 0) && (play->sceneNum != SCENE_KENJYANOMA)) {
|
||||
if (CVar_GetS32("gAutosave", 0) && (play && play->sceneNum != SCENE_KENJYANOMA)) {
|
||||
if (CVar_GetS32("gAutosaveAllItems", 0)) {
|
||||
Play_PerformSave(play);
|
||||
} else if (CVar_GetS32("gAutosaveMajorItems", 1)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue