diff --git a/Aquaria/SceneEditor.cpp b/Aquaria/SceneEditor.cpp index 469a0d2..bfe068d 100644 --- a/Aquaria/SceneEditor.cpp +++ b/Aquaria/SceneEditor.cpp @@ -3107,9 +3107,9 @@ void SceneEditor::selectEnd() for (int i = 0; i < dsq->game->elementTemplates.size(); i++) { ElementTemplate et = dsq->game->elementTemplates[i]; - if (et.idx < 1024 && et.idx > largest) + if (et.idx < 1024 && i > largest) { - largest = et.idx; + largest = i; } } curElement = largest;