Nice fix.

This commit is contained in:
Lion Kortlepel
2021-09-17 02:36:06 +02:00
parent 62fd369625
commit ed6f5282d9
2 changed files with 5 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ void TLuaEngine::operator()() {
auto Futures = TriggerEvent("onInit");
WaitForAll(Futures);
for (const auto& Future : Futures) {
if (Future->Error) {
if (Future->Error && Future->ErrorMessage != BeamMPFnNotFoundError) {
beammp_lua_error("Calling \"onInit\" on \"" + Future->StateId + "\" failed: " + Future->ErrorMessage);
}
}