From 750b308d70cf1c903812316deeb0a8c4befa37ce Mon Sep 17 00:00:00 2001 From: Steph Enders Date: Thu, 16 Jun 2022 00:17:21 -0400 Subject: Fixup warning from IntelliJ --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index fb61369..6f649cd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,10 +4,9 @@ #include #include #include -#include const char* DEFAULT_PROC = "include/default_proc.lua"; -std::shared_ptr lvl = std::make_shared(); +std::shared_ptr lvl; bool call_onkeypress(lua_State* L, char pressedKey); @@ -25,6 +24,8 @@ main(int argc, char** argv) std::filesystem::path mapFile{ lvl_pfx + "/dng.map" }; std::filesystem::path luaFile{ lvl_pfx + "/proc.lua" }; + lvl = std::make_shared(); + lvl->loadLevelFromFile(mapFile.c_str()); lua_State* L_lvl = luaL_newstate(); -- cgit v1.2.3-54-g00ecf