[Scummvm-git-logs] scummvm branch-2-3 -> 8b767b4ab5db616b17a049e448c1587e19836ed3

dreammaster dreammaster at scummvm.org
Thu Sep 9 04:55:18 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:
8b767b4ab5 AGS: Fix display of plugin function names in script dumps


Commit: 8b767b4ab5db616b17a049e448c1587e19836ed3
    https://github.com/scummvm/scummvm/commit/8b767b4ab5db616b17a049e448c1587e19836ed3
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2021-09-08T21:55:06-07:00

Commit Message:
AGS: Fix display of plugin function names in script dumps

Changed paths:
    engines/ags/engine/script/runtime_script_value.h


diff --git a/engines/ags/engine/script/runtime_script_value.h b/engines/ags/engine/script/runtime_script_value.h
index 24b5b84352..496058b03b 100644
--- a/engines/ags/engine/script/runtime_script_value.h
+++ b/engines/ags/engine/script/runtime_script_value.h
@@ -303,6 +303,11 @@ public:
 	}
 
 	inline bool operator ==(const RuntimeScriptValue &rval) {
+		if (rval.Type == kScValPluginFunction) {
+			assert(!rval.methodName.empty());
+			return (Type == kScValPluginFunction) && (rval.methodName == methodName);
+		}
+
 		return ((intptr_t)Ptr + (intptr_t)IValue) == ((intptr_t)rval.Ptr + (intptr_t)rval.IValue);
 	}
 	inline bool operator !=(const RuntimeScriptValue &rval) {




More information about the Scummvm-git-logs mailing list