aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-06-03 22:53:17 +0200
committerEinar Johan Trøan Sømåen2012-06-03 22:53:17 +0200
commitb830ae44eaedefc7cf3b4c18b06cb88cfcea184e (patch)
treef6f73b0cee4416c2d1df5e72fba8b8ab22704037 /engines
parent311341bff02670d7b0a94e7499229a038a816edd (diff)
downloadscummvm-rg350-b830ae44eaedefc7cf3b4c18b06cb88cfcea184e.tar.gz
scummvm-rg350-b830ae44eaedefc7cf3b4c18b06cb88cfcea184e.tar.bz2
scummvm-rg350-b830ae44eaedefc7cf3b4c18b06cb88cfcea184e.zip
WINTERMUTE: Fix a missing const that made Rosemary bug out in scripts.
Diffstat (limited to 'engines')
-rw-r--r--engines/wintermute/Base/BScriptable.cpp2
-rw-r--r--engines/wintermute/Base/BScriptable.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/Base/BScriptable.cpp b/engines/wintermute/Base/BScriptable.cpp
index b7dd2d5be1..ef378500e2 100644
--- a/engines/wintermute/Base/BScriptable.cpp
+++ b/engines/wintermute/Base/BScriptable.cpp
@@ -162,7 +162,7 @@ void CBScriptable::ScDebuggerDesc(char *Buf, int BufSize) {
}
//////////////////////////////////////////////////////////////////////////
-bool CBScriptable::CanHandleMethod(char *EventMethod) {
+bool CBScriptable::CanHandleMethod(const char *EventMethod) {
return false;
}
diff --git a/engines/wintermute/Base/BScriptable.h b/engines/wintermute/Base/BScriptable.h
index 5a24bde8e8..dfe36abf52 100644
--- a/engines/wintermute/Base/BScriptable.h
+++ b/engines/wintermute/Base/BScriptable.h
@@ -49,7 +49,7 @@ public:
virtual ~CBScriptable();
// high level scripting interface
- virtual bool CanHandleMethod(char *EventMethod);
+ virtual bool CanHandleMethod(const char *EventMethod);
virtual HRESULT ScSetProperty(const char *Name, CScValue *Value);
virtual CScValue *ScGetProperty(const char *Name);
virtual HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);