aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);