diff --git a/library/LuaApi.cpp b/library/LuaApi.cpp index 266677045..775e0a348 100644 --- a/library/LuaApi.cpp +++ b/library/LuaApi.cpp @@ -2144,7 +2144,8 @@ int screen_show(lua_State *L) static int screen_dismiss(lua_State *L) { df::viewscreen *screen = dfhack_lua_viewscreen::get_pointer(L, 1, false); - Screen::dismiss(screen); + bool to_first = lua_toboolean(L, 2); + Screen::dismiss(screen, to_first); return 0; }