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

scemino noreply at scummvm.org
Wed Dec 18 19:05:22 UTC 2024


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:
a406875954 TWP: Fix "next object" action with no actor


Commit: a406875954094a9f5d448b0eb1699332f2b7ad1e
    https://github.com/scummvm/scummvm/commit/a406875954094a9f5d448b0eb1699332f2b7ad1e
Author: scemino (scemino74 at gmail.com)
Date: 2024-12-18T20:05:12+01:00

Commit Message:
TWP: Fix "next object" action with no actor

Fix #15599

Changed paths:
    engines/twp/twp.cpp


diff --git a/engines/twp/twp.cpp b/engines/twp/twp.cpp
index f2d859c578b..001e1c46a41 100644
--- a/engines/twp/twp.cpp
+++ b/engines/twp/twp.cpp
@@ -846,7 +846,7 @@ static void moveCursorTo(const Math::Vector2d &pos) {
 }
 
 static void gotoObject(bool next) {
-	if (!g_twp->_room || !g_twp->_inputState._inputActive || !g_twp->_inputState._showCursor)
+	if (!g_twp->_room || !g_twp->_actor || !g_twp->_inputState._inputActive || !g_twp->_inputState._showCursor)
 		return;
 
 	// get all objects touchable and on screen and get their distance to the actor




More information about the Scummvm-git-logs mailing list