From 750b308d70cf1c903812316deeb0a8c4befa37ce Mon Sep 17 00:00:00 2001
From: Steph Enders <smenders@gmail.com>
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 <filesystem>
 #include <iostream>
 #include <lua.hpp>
-#include <memory>
 
 const char* DEFAULT_PROC = "include/default_proc.lua";
-std::shared_ptr<Level> lvl = std::make_shared<Level>();
+std::shared_ptr<Level> 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<Level>();
+
   lvl->loadLevelFromFile(mapFile.c_str());
 
   lua_State* L_lvl = luaL_newstate();
-- 
cgit v1.2.3-54-g00ecf