diff options
Diffstat (limited to 'src/GlobalState.hpp')
-rw-r--r-- | src/GlobalState.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/GlobalState.hpp b/src/GlobalState.hpp index b3b4635..bc7224f 100644 --- a/src/GlobalState.hpp +++ b/src/GlobalState.hpp @@ -1,5 +1,7 @@ #pragma once +#include <memory> + class NetworkClient; class GameState; class Render; @@ -15,7 +17,7 @@ enum class State { }; struct GlobalState { - static GameState *GetGameState(); + static std::shared_ptr<GameState> GetGameState(); static Render *GetRender(); static void Exec(); static State GetState(); |