aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/GameSingleton.hpp
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2023-11-10 05:14:58 +0100
committer Spartan322 <Megacake1234@gmail.com>2023-11-10 23:15:32 +0100
commitcf591eddfa59839c2620ebf119727f069b965dfe (patch)
tree65ca78284e4ed1a2b07716018a721aaaf68d3830 /extension/src/openvic-extension/GameSingleton.hpp
parentf8da0860795d273452501fa4d7fbfcc40073a884 (diff)
Add ClassBinding helpers
OV_BIND_METHOD OV_BIND_SMETHOD OV_BIND_SMETHOD_L Change _bind_methods to use ClassBinding helpers Add utility/StringLiteral Make `GameSingleton::singleton` inline Move `OpenVic::Checksum` implementation to source file Update scripts to ce1aef8d7d9d5ba9851a1abdd981d3b796024079
Diffstat (limited to 'extension/src/openvic-extension/GameSingleton.hpp')
-rw-r--r--extension/src/openvic-extension/GameSingleton.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/extension/src/openvic-extension/GameSingleton.hpp b/extension/src/openvic-extension/GameSingleton.hpp
index 1d92ef0..ec26c3c 100644
--- a/extension/src/openvic-extension/GameSingleton.hpp
+++ b/extension/src/openvic-extension/GameSingleton.hpp
@@ -11,7 +11,7 @@ namespace OpenVic {
class GameSingleton : public godot::Object {
GDCLASS(GameSingleton, godot::Object)
- static GameSingleton* singleton;
+ inline static GameSingleton* singleton = nullptr;
GameManager game_manager;
Dataloader dataloader;