[Scummvm-git-logs] scummvm master -> 1e76c86ff44b65fc06b748069e68b5714bf164a1
dreammaster
dreammaster at scummvm.org
Thu Sep 9 04:54:56 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:
1e76c86ff4 AGS: Fix display of plugin function names in script dumps
Commit: 1e76c86ff44b65fc06b748069e68b5714bf164a1
https://github.com/scummvm/scummvm/commit/1e76c86ff44b65fc06b748069e68b5714bf164a1
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2021-09-08T21:54:40-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