diff options
-rw-r--r-- | engines/cryo/eden.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cryo/eden.cpp b/engines/cryo/eden.cpp index 4a051a661a..a9476f8199 100644 --- a/engines/cryo/eden.cpp +++ b/engines/cryo/eden.cpp @@ -6784,7 +6784,7 @@ void EdenGame::syncTapePointers(Common::Serializer s) { s.syncAsUint32LE(dialogIdx); if (s.isLoading()) { - _tapes[i]._perso = &_persons[persoIdx]; + _tapes[i]._perso = (persoIdx == NULLPTR) ? nullptr : &_persons[persoIdx]; _tapes[i]._dialog = (dialogIdx == NULLPTR) ? nullptr : (Dialog *)getElem(_gameDialogs, dialogIdx); } } |