summaryrefslogtreecommitdiff
path: root/editor/editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor.cpp')
-rw-r--r--editor/editor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/editor.cpp b/editor/editor.cpp
index bc5d072..b3d0f4a 100644
--- a/editor/editor.cpp
+++ b/editor/editor.cpp
@@ -1521,7 +1521,8 @@ void PkeEditor_Setup() {
void PkeEditor_Disable() {
shouldDisableEditor = false;
- PkeInput_DeactivateSet(debugControlsHandle);
+ if (debugControlsHandle != InputActionSetHandle_MAX)
+ PkeInput_DeactivateSet(debugControlsHandle);
}
void PkeEditor_Teardown() {
@@ -1529,7 +1530,8 @@ void PkeEditor_Teardown() {
if (subProgramPid != -1) {
kill(subProgramPid, SIGINT);
}
- PkeThreads_Teardown(threadPoolHandle);
+ if (threadPoolHandle != ThreadPoolHandle_MAX)
+ PkeThreads_Teardown(threadPoolHandle);
entityInstancesToCreate.~DynArray();
}