]> git.tdb.fi Git - libs/game.git/blobdiff - source/game/director.cpp
Enforce no creation or destruction of objects during tick
[libs/game.git] / source / game / director.cpp
index b06dff4d4c0045c49a98840831071e7845030603..4a4c1265e82d12ba897f65f1879b8db8f6b7ac33 100644 (file)
@@ -10,7 +10,11 @@ namespace Msp::Game {
 Director::Director(DataFile::Collection &r):
        resources(r),
        event_source(event_bus)
-{ }
+{
+#if DEBUG
+       access_guard.emplace();
+#endif
+}
 
 // Hide ~unique_ptr<Stage> from the header
 Director::~Director()