Mario editor: fix tool selection

This commit is contained in:
zv0n 2021-05-07 10:36:31 +02:00
parent e084ed6f86
commit 900382bfce

View File

@ -172,9 +172,9 @@ void pollEvents( SDLPP::Scene &scene ) {
}
}
if(current_tool_box.getX() != -1) {
auto index = current_tool_index + current_tool_box.getY() * 4 + current_tool_box.getX();
auto index = current_tool_box.getY() * 4 + current_tool_box.getX();
if(index < tools.size()) {
current_block = (current_tool_index * 8 - 1) + index;
current_block = current_tool_index * 8 + index;
updateTool();
}
}