b2b368b268524b5255f84c251580a97bfe81cd1b — Leinnan 7 months ago ddd470b
Fix name window
1 files changed, 2 insertions(+), 2 deletions(-)

M src/main.cpp
M src/main.cpp => src/main.cpp +2 -2
@@ 40,7 40,7 @@ int main(int argc, char **argv) {
         std::cout << "Can't load "<< (argc == 2 ? argv[1] : CONFIG_PATH) <<"\n";
         return 1;
     }
-    const auto windowName = reader.Get("game", "name", "Raylib").c_str();
+    const auto windowName = reader.Get("game", "name", "Raylib");
     const auto jsonFile = reader.Get("game","firstJson","data.json");
 
     int flags = FLAG_WINDOW_RESIZABLE;


@@ 52,7 52,7 @@ int main(int argc, char **argv) {
         flags |= FLAG_MSAA_4X_HINT;
 
     SetConfigFlags(flags);
-    InitWindow(reader.GetInteger("gfx","width",SCREEN_WIDTH), reader.GetInteger("gfx","height",SCREEN_HEIGHT), windowName);
+    InitWindow(reader.GetInteger("gfx","width",SCREEN_WIDTH), reader.GetInteger("gfx","height",SCREEN_HEIGHT), windowName.c_str());
     renderSystem.Init(registry);
     collisionSystem.Init(registry);
     aiSystem.Init(registry);