Further work on better exceptions.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -137,9 +137,7 @@ void Battle::AddVolatileScript(const ArbUt::StringView& key) {
|
||||
}
|
||||
script = _library->LoadScript(ScriptCategory::Battle, key);
|
||||
if (script == nullptr) {
|
||||
std::stringstream ss;
|
||||
ss << "Invalid volatile script requested for battle: '" << key.c_str() << "'.";
|
||||
throw CreatureException(ss.str());
|
||||
THROW_CREATURE("Invalid volatile script requested for battle: '" << key.c_str() << "'.");
|
||||
}
|
||||
return _volatile.Add(script.GetRaw());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user