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

sev- sev at scummvm.org
Thu Jul 8 21:53:32 UTC 2021


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:
eac8763545 DIRECTOR: Fix copy/paste error and added comments


Commit: eac8763545a7489f773e25734dcbc158f58e58c3
    https://github.com/scummvm/scummvm/commit/eac8763545a7489f773e25734dcbc158f58e58c3
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2021-07-08T23:53:20+02:00

Commit Message:
DIRECTOR: Fix copy/paste error and added comments

Changed paths:
    engines/director/lingo/xlibs/labeldrvxobj.cpp


diff --git a/engines/director/lingo/xlibs/labeldrvxobj.cpp b/engines/director/lingo/xlibs/labeldrvxobj.cpp
index 08c8582be0..b0a1c78220 100644
--- a/engines/director/lingo/xlibs/labeldrvxobj.cpp
+++ b/engines/director/lingo/xlibs/labeldrvxobj.cpp
@@ -53,7 +53,7 @@ void LabelDrvXObj::initialize(int type) {
 			LabelDrvXObject *xobj = new LabelDrvXObject(kXObj);
 			g_lingo->_globalvars[xlibName] = xobj;
 		} else {
-			warning("PalXObject already initialized");
+			warning("LabelDrvXObj already initialized");
 		}
 	}
 }
@@ -80,7 +80,7 @@ void LabelDrvXObj::m_setRange(int nargs) {
 	Common::String from = d1.asString();
 	Common::String to = d2.asString();
 
-	me->_range = from;
+	me->_range = from; // Store it so we could return value in the requested range
 }
 
 void LabelDrvXObj::m_getDrive(int nargs) {
@@ -90,7 +90,7 @@ void LabelDrvXObj::m_getDrive(int nargs) {
 
 	Common::String label = d1.asString();
 
-	g_lingo->push(Datum(me->_range));
+	g_lingo->push(Datum(me->_range)); // Always returning first letter
 }
 
 } // End of namespace Director




More information about the Scummvm-git-logs mailing list