[Scummvm-git-logs] scummvm master -> 5f64fdb156b6d623543fee8c891e71dd63de041b

athrxx noreply at scummvm.org
Mon Aug 1 16:29:00 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
5f64fdb156 KYRA: (HOF) - fix nullptr deref for missing kyra.dat cases


Commit: 5f64fdb156b6d623543fee8c891e71dd63de041b
    https://github.com/scummvm/scummvm/commit/5f64fdb156b6d623543fee8c891e71dd63de041b
Author: athrxx (athrxx at scummvm.org)
Date: 2022-08-01T18:27:11+02:00

Commit Message:
KYRA: (HOF) - fix nullptr deref for missing kyra.dat cases

Changed paths:
    engines/kyra/engine/kyra_hof.cpp


diff --git a/engines/kyra/engine/kyra_hof.cpp b/engines/kyra/engine/kyra_hof.cpp
index a6112018035..cc8de453861 100644
--- a/engines/kyra/engine/kyra_hof.cpp
+++ b/engines/kyra/engine/kyra_hof.cpp
@@ -169,7 +169,8 @@ void KyraEngine_HoF::pauseEngineIntern(bool pause) {
 		_pauseStart = 0;
 
 		_nextIdleAnim += pausedTime;
-		_tim->refreshTimersAfterPause(pausedTime);
+		if (_tim)
+			_tim->refreshTimersAfterPause(pausedTime);
 	}
 }
 




More information about the Scummvm-git-logs mailing list