Fixed issue with double initalization

This commit is contained in:
Timothy O'Barr
2026-08-28 14:54:45 -05:00
parent 3e50d46284
commit ef54fa6609
3 changed files with 23 additions and 9 deletions
+2 -4
View File
@@ -3,15 +3,13 @@
#include <filesystem>
#include <fstream>
bool isActive;
std::vector<std::vector<Room>> rooms;
Game::Game() {
curX = 0;
curY = 0;
isActive = false;
progress = 0;
Init();
}
bool Game::Init() {
@@ -72,7 +70,7 @@ void Game::ChangeRoom(Room r) {
}
int Quit(const std::string &n) {
isActive = false;
Game::Instance().SetIsActive(false);
return 0;
}