mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-25 23:39:19 +02:00
Fix ubuntu20+ compile "error" (#1)
* BehaviourDatabase::searchDigitNoLimit: catching exception with const ref * - ident with tab
This commit is contained in:
parent
918dae6771
commit
ebdcffea33
@ -1440,10 +1440,10 @@ int32_t BehaviourDatabase::searchDigitNoLimit(const std::string& message)
|
||||
try {
|
||||
value = std::stoi(message.substr(start, end).c_str());
|
||||
}
|
||||
catch (std::invalid_argument) {
|
||||
catch (std::invalid_argument const&) {
|
||||
return 0;
|
||||
}
|
||||
catch (std::out_of_range) {
|
||||
catch (std::out_of_range const&) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user