From 89ad775c0d7d9bdba009556712c16dafb8ec9868 Mon Sep 17 00:00:00 2001 From: NeeEoo Date: Fri, 11 Aug 2023 23:26:59 +0200 Subject: [PATCH] Fix warning --- source/funkin/editors/EditorPicker.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/funkin/editors/EditorPicker.hx b/source/funkin/editors/EditorPicker.hx index 2ddd9435..1ddbd508 100644 --- a/source/funkin/editors/EditorPicker.hx +++ b/source/funkin/editors/EditorPicker.hx @@ -127,7 +127,8 @@ class EditorPicker extends MusicBeatSubstate { oldMousePos.put(); curMousePos.put(); - FlxG.cameras.remove(subCam); + if (FlxG.cameras.list.contains(subCam)) + FlxG.cameras.remove(subCam); } public function changeSelection(change:Int) {