Replace a TENLog call with ScriptWarn, so that it won't get logged in ERROR_MODE::SILENT.

This commit is contained in:
hispidence 2021-08-06 16:48:03 +01:00
parent dc40060a63
commit 7bc9e7b935

View file

@ -797,7 +797,7 @@ void GameScript::InitCallbacks()
func = (*m_lua)["LevelFuncs"][luaFunc];
std::string err{ "Level's script does not define callback " + fullName};
if (!ScriptAssert(func.valid(), err)) {
TENLog("Defaulting to no " + fullName + " behaviour.", LogLevel::Warning, LogConfig::All);
ScriptWarn("Defaulting to no " + fullName + " behaviour.");
}
};