From 4ebce3e36b8efa8b1cd7815b82e4e0218e31c19e Mon Sep 17 00:00:00 2001 From: fgenesis Date: Wed, 8 May 2024 03:26:26 +0200 Subject: [PATCH] fix oversight that caused assertion fail when "moving" tiles from one layer to the same layer should just ignore this case glad i put in that assert there though --- Aquaria/SceneEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Aquaria/SceneEditor.cpp b/Aquaria/SceneEditor.cpp index c4cf0d1..040baf2 100644 --- a/Aquaria/SceneEditor.cpp +++ b/Aquaria/SceneEditor.cpp @@ -1802,7 +1802,7 @@ void SceneEditor::action(int id, int state, int source, InputDevice device) if (core->getShiftState()) { - if(newLayer < MAX_TILE_LAYERS) + if(newLayer < MAX_TILE_LAYERS && newLayer != bgLayer) { TileStorage& dst = dsq->tilemgr.tilestore[newLayer]; const size_t idx = ts.moveToOther(dst, &selectedTiles[0], N);