mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-25 17:53:47 +00:00
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
This commit is contained in:
parent
5c0237b4e5
commit
4ebce3e36b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue