mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 16:57:57 +03:00
Make default s_callbackRemoveName not throw.
This commit is contained in:
parent
6bc5a561a0
commit
96441572bf
1 changed files with 3 additions and 2 deletions
|
@ -31,9 +31,10 @@ template <typename T, typename S> callbackSetName<S> GameScriptNamedBase<T, S>::
|
|||
return false;
|
||||
};
|
||||
|
||||
// this could potentially be called by the GameScriptItemInfo destructor, and thus cannot throw
|
||||
template <typename T, typename S> callbackRemoveName GameScriptNamedBase<T, S>::s_callbackRemoveName = [](std::string const& n) {
|
||||
std::string err = "\"Remove Name\" callback is not set.";
|
||||
throw TENScriptException(err);
|
||||
TENLog("\"Remove Name\" callback is not set.", LogLevel::Error);
|
||||
std::terminate();
|
||||
return false;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue