debugwindow: catch exception to avoid crash when missing parameters

pull/12/head
EmaMaker 2023-10-04 11:27:53 +02:00
parent 4e7fadd2b9
commit f4947d5f70
1 changed files with 3 additions and 1 deletions

View File

@ -121,7 +121,9 @@ namespace debug{
std::any_cast<int>(parameters.at("update_chunks_bucket"))); std::any_cast<int>(parameters.at("update_chunks_bucket")));
} }
}catch(const std::bad_any_cast& e){ }catch(const std::bad_any_cast& e){
std::cout << e.what(); std::cout << e.what() << std::endl;
}catch(const std::out_of_range& e){
std::cout << e.what() << std::endl;
} }
ImGui::End(); ImGui::End();