From 10df2d85dc013a9d7cbd5f68a21b4b59daada50b Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 5 Jul 2019 13:19:57 +0200 Subject: HDB: Fix warning --- engines/hdb/hdb.h | 2 +- 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; } -- cgit v1.2.3