diff options
-rw-r--r-- | engines/hdb/ai.cpp | 2 | ||||
-rw-r--r-- | engines/hdb/ai.h | 4 | ||||
-rw-r--r-- | engines/hdb/lua-script.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/engines/hdb/ai.cpp b/engines/hdb/ai.cpp index 1de95be9e7..fd6499a68e 100644 --- a/engines/hdb/ai.cpp +++ b/engines/hdb/ai.cpp @@ -127,7 +127,7 @@ void AI::processCines() { } } -void AI::cineStart(bool abortable, char *abortFunc) { +void AI::cineStart(bool abortable, const char *abortFunc) { _cineAbortable = abortable; _cineAborted = false; _cineAbortFunc = abortFunc; diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index f06f3a6009..af7e68f1db 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -89,7 +89,7 @@ public: // Cinematic Functions void processCines(); - void cineStart(bool abortable, char *abortFunc); + void cineStart(bool abortable, const char *abortFunc); void cineSetCamera(int x, int y); void cineResetCamera(); void cineMoveCamera(int x, int y, int speed); @@ -104,7 +104,7 @@ private: // Cinematics Variables bool _cineAbortable; bool _cineAborted; - char *_cineAbortFunc; + const char *_cineAbortFunc; bool _cineActive; bool _playerLock; bool _cameraLock; diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index fe83d17c94..b94923da13 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -70,7 +70,7 @@ bool LuaScript::init() { static int cineStart(lua_State *L) { double abortable = lua_tonumber(L, 1); - char *abortFunc = (char *)lua_tostring(L, 2); + const char *abortFunc = lua_tostring(L, 2); g_hdb->_lua->checkParameters("cineStart", 2); |