diff options
author | Eugene Sandulenko | 2019-07-05 13:19:57 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:12 +0200 |
commit | 10df2d85dc013a9d7cbd5f68a21b4b59daada50b (patch) | |
tree | 16704bb029d015645cf6c5ac57eee033169ec5f5 /engines/hdb | |
parent | 03f1a137865dc99de5d433ce90ddf19b154b3547 (diff) | |
download | scummvm-rg350-10df2d85dc013a9d7cbd5f68a21b4b59daada50b.tar.gz scummvm-rg350-10df2d85dc013a9d7cbd5f68a21b4b59daada50b.tar.bz2 scummvm-rg350-10df2d85dc013a9d7cbd5f68a21b4b59daada50b.zip |
HDB: Fix warning
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/hdb.h | 2 | ||||
-rw-r--r-- | engines/hdb/lua-script.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h index 6d7490b914..e936498157 100644 --- a/engines/hdb/hdb.h +++ b/engines/hdb/hdb.h @@ -213,7 +213,7 @@ public: char *lastMapname() { return _lastMapname; } - void changeLevel(char *name) { + void changeLevel(const char *name) { strcpy(_changeMapname, name); _changeLevel = true; } diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index 7da2bd9bd8..50c15519a6 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -957,7 +957,7 @@ static int startMap(lua_State *L) { g_hdb->_lua->checkParameters("startMap", 1); lua_pop(L, 1); - g_hdb->changeLevel((char *)string); + g_hdb->changeLevel(string); return 0; } |