Fixes the release build

This commit is contained in:
Linus Probert 2018-04-28 19:10:49 +02:00
parent a350f66290
commit 5efef180a5
3 changed files with 3 additions and 4 deletions

View File

@ -197,6 +197,7 @@ if (NOT CMAKE_BUILD_TYPE MATCHES Debug)
"${CMAKE_CURRENT_SOURCE_DIR}/assets/Items" "${CMAKE_CURRENT_SOURCE_DIR}/assets/Items"
"${CMAKE_CURRENT_SOURCE_DIR}/assets/Objects" "${CMAKE_CURRENT_SOURCE_DIR}/assets/Objects"
"${CMAKE_CURRENT_SOURCE_DIR}/assets/Sounds" "${CMAKE_CURRENT_SOURCE_DIR}/assets/Sounds"
"${CMAKE_CURRENT_SOURCE_DIR}/assets/Extras"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/assets WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/assets
) )

View File

@ -34,8 +34,7 @@ db_execute_stmnt(const char *stmnt,
void db_close(sqlite3 **db) void db_close(sqlite3 **db)
{ {
const char *fname = sqlite3_db_filename(*db, NULL); debug("Closing db: %s", sqlite3_db_filename(*db, NULL));
debug("Closing db: %s", fname);
sqlite3_close(*db); sqlite3_close(*db);
*db = NULL; *db = NULL;
} }

View File

@ -53,8 +53,7 @@ int l_create_map(lua_State *L)
static int static int
l_print_info(lua_State *L) l_print_info(lua_State *L)
{ {
const char *str = luaL_checkstring(L, 1); debug(luaL_checkstring(L, 1));
debug(str);
return 0; return 0;
} }