diff --git a/mario/editor.cpp b/mario/editor.cpp index fcb2894..e4821fd 100644 --- a/mario/editor.cpp +++ b/mario/editor.cpp @@ -534,14 +534,14 @@ void mouseUpAction( uint64_t flags, SDLPP::Scene &scene ) { } } -SDLPP::Vec2D< int > getSelectedObjectPosition() { +SDLPP::Vec2D< int > getSelectedObjectIndexes() { // -1 because we're indexing edit boxes from 1 (due to left arrow on map) return global_vars.mouse.edit_box + SDLPP::Vec2D< int >( global_vars.map.cur_page - 1, 0 ); } mapObjectType &getSelectedObject() { - auto pos = getSelectedObjectPosition(); + auto pos = getSelectedObjectIndexes(); return global_vars.objects[pos.getX()][pos.getY()]; }