From 59625b49c6717081d21a0b010deca371c2b277f4 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Tue, 18 Jun 2019 20:40:47 +0530 Subject: HDB: Change the type of _cineAbortFunc --- engines/hdb/ai.cpp | 2 +- engines/hdb/ai.h | 4 ++-- engines/hdb/lua-script.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'engines') 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); -- cgit v1.2.3