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
+5 -1
View File
@@ -3,7 +3,11 @@
int main(int argc, char *argv[]) {
Game game; // Calls default constructor which Initializes GAME
while (Game::GetIsActive()) {
if (!game) {
game.Init();
Game::SetGameInstance(&game);
}
while (game.GetIsActive()) {
game.Run();
}