Replace std::runtime_exception with TENScriptException.

This commit is contained in:
hispidence 2021-08-03 15:15:42 +01:00
parent dfcbdb753a
commit a637701d63
8 changed files with 16 additions and 16 deletions

View file

@ -106,7 +106,7 @@ std::string GameScriptAIObject::GetName() const
void GameScriptAIObject::SetName(std::string const & id)
{
if (id.empty() && WarningsAsErrors)
throw std::runtime_error("Name cannot be blank");
throw TENScriptException("Name cannot be blank");
// remove the old name if we have one
s_callbackRemoveName(m_aiObject.luaName);