mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
stoi out_of_range fix
This commit is contained in:
parent
9af18717f8
commit
3d4bfeb442
1 changed files with 1 additions and 0 deletions
|
|
@ -105,6 +105,7 @@ std::shared_ptr<UINode> create_debug_panel(
|
||||||
position[ax] = std::stoi(text);
|
position[ax] = std::stoi(text);
|
||||||
player->teleport(position);
|
player->teleport(position);
|
||||||
} catch (std::invalid_argument& _){
|
} catch (std::invalid_argument& _){
|
||||||
|
} catch (std::out_of_range & _) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
box->setOnEditStart([=](){
|
box->setOnEditStart([=](){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue