diff options
author | Nipun Garg | 2019-06-18 20:40:47 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:48 +0200 |
commit | 59625b49c6717081d21a0b010deca371c2b277f4 (patch) | |
tree | 8a04dad34e65e64d5919b950c01d6eb6d6deb335 /engines | |
parent | 337f057fd4d1b94db4d38819273cfc98fbccfd93 (diff) | |
download | scummvm-rg350-59625b49c6717081d21a0b010deca371c2b277f4.tar.gz scummvm-rg350-59625b49c6717081d21a0b010deca371c2b277f4.tar.bz2 scummvm-rg350-59625b49c6717081d21a0b010deca371c2b277f4.zip |
HDB: Change the type of _cineAbortFunc
Diffstat (limited to 'engines')
-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); |