Use Arbutils exception Macros, instead of own ones.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
@@ -23,8 +23,8 @@ namespace CreatureLib::Library {
|
||||
try {
|
||||
return _effectiveness[attacking][defensive];
|
||||
} catch (const std::exception& e) {
|
||||
THROW_CREATURE("Unknown type indices were requested for effectiveness: "
|
||||
<< (uint32_t)attacking << " and " << (uint32_t)defensive);
|
||||
THROW("Unknown type indices were requested for effectiveness: " << (uint32_t)attacking << " and "
|
||||
<< (uint32_t)defensive);
|
||||
}
|
||||
}
|
||||
[[nodiscard]] inline float GetEffectiveness(uint8_t attacking,
|
||||
|
||||
Reference in New Issue
Block a user