aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2017-02-21 00:43:19 +0100
committerStrangerke2017-02-21 00:44:38 +0100
commite878332cc4f0581343b794d8a20b396b726e3543 (patch)
tree97c3aa3b13031e15c0c7318c2759238d1c40260d
parent2dbef2ffd7aad79bc15c7d47163d0555ca396464 (diff)
downloadscummvm-rg350-e878332cc4f0581343b794d8a20b396b726e3543.tar.gz
scummvm-rg350-e878332cc4f0581343b794d8a20b396b726e3543.tar.bz2
scummvm-rg350-e878332cc4f0581343b794d8a20b396b726e3543.zip
CRYO: Fix a bug in syncTapePointers
-rw-r--r--engines/cryo/eden.cpp2
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);
}
}