From b96f3e9f033902a7dbaad1d3b8d4506f1b69ed26 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 31 Aug 2023 22:19:21 +0900 Subject: [PATCH] Attempt to fix wasm compile error extern game pointer needs initializer? --- src/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index 9548455..6223118 100644 --- a/src/main.cc +++ b/src/main.cc @@ -16,7 +16,7 @@ #ifdef __EMSCRIPTEN__ -extern Game *global_game_ptr; +extern Game *global_game_ptr = nullptr; extern "C" {