[Scummvm-git-logs] scummvm master -> 1030283cf44605fa385fa4cb679d58cf6b938dbd

athrxx noreply at scummvm.org
Fri Jun 3 00:20:26 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:
1030283cf4 KYRA: (HOF) - add script var check


Commit: 1030283cf44605fa385fa4cb679d58cf6b938dbd
    https://github.com/scummvm/scummvm/commit/1030283cf44605fa385fa4cb679d58cf6b938dbd
Author: athrxx (athrxx at scummvm.org)
Date: 2022-06-03T02:19:19+02:00

Commit Message:
KYRA: (HOF) - add script var check

(follow-up to https://github.com/scummvm/scummvm/pull/3949)

Changed paths:
    engines/kyra/script/script_hof.cpp


diff --git a/engines/kyra/script/script_hof.cpp b/engines/kyra/script/script_hof.cpp
index 77ab2df2167..acc0bdcb9cb 100644
--- a/engines/kyra/script/script_hof.cpp
+++ b/engines/kyra/script/script_hof.cpp
@@ -872,7 +872,8 @@ int KyraEngine_HoF::o2_defineSceneAnim(EMCState *script) {
 	anim.height = stackPos(7);
 	anim.specialSize = stackPos(9);
 	anim.shapeIndex = stackPos(11);
-	strcpy(anim.filename, stackPosString(12));
+	if (*stackPosString(12))
+		strcpy(anim.filename, stackPosString(12));
 
 	if (anim.flags & 0x40) {
 		if (!_sceneAnimMovie[animId]->open(anim.filename, 1, nullptr))




More information about the Scummvm-git-logs mailing list