stoi out_of_range fix

This commit is contained in:
MihailRis 2024-03-18 18:38:47 +03:00
parent 9af18717f8
commit 3d4bfeb442

View File

@ -105,6 +105,7 @@ std::shared_ptr<UINode> create_debug_panel(
position[ax] = std::stoi(text);
player->teleport(position);
} catch (std::invalid_argument& _){
} catch (std::out_of_range & _) {
}
});
box->setOnEditStart([=](){