aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/hdb.h2
-rw-r--r--engines/hdb/lua-script.cpp2
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;
}