[Scummvm-git-logs] scummvm master -> e77592e9c4f4d7812d6bc177f958973eca49cfde

mduggan noreply at scummvm.org
Mon Mar 6 03:45:20 UTC 2023


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:
e77592e9c4 TETRAEDGE: Avoid potential crash on anim finished


Commit: e77592e9c4f4d7812d6bc177f958973eca49cfde
    https://github.com/scummvm/scummvm/commit/e77592e9c4f4d7812d6bc177f958973eca49cfde
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2023-03-06T12:44:59+09:00

Commit Message:
TETRAEDGE: Avoid potential crash on anim finished

Changed paths:
    engines/tetraedge/game/character.cpp


diff --git a/engines/tetraedge/game/character.cpp b/engines/tetraedge/game/character.cpp
index 8602961fd04..4842b2fde17 100644
--- a/engines/tetraedge/game/character.cpp
+++ b/engines/tetraedge/game/character.cpp
@@ -595,7 +595,7 @@ bool Character::onBonesUpdate(const Common::String &boneName, TeMatrix4x4 &boneM
 
 bool Character::onModelAnimationFinished() {
 	// this shouldn't happen but check to be sure..
-	if (!_model->anim())
+	if (!_model || !_model->anim())
 		return false;
 
 	const Common::Path loadedPath = _model->anim()->loadedPath();




More information about the Scummvm-git-logs mailing list