From e878332cc4f0581343b794d8a20b396b726e3543 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Tue, 21 Feb 2017 00:43:19 +0100 Subject: CRYO: Fix a bug in syncTapePointers --- engines/cryo/eden.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/cryo') 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); } } -- cgit v1.2.3