LuaContext.cpp: fix GCC warning

This commit is contained in:
oltolm
2025-05-29 10:02:48 +02:00
parent 9bebc12330
commit eb92ef0782
+1 -1
View File
@@ -134,7 +134,7 @@ void LuaContext::ExecuteConsoleCommand(std::string_view cmd) {
sol::error err = result;
lines_.push_back(LuaLogLine{ LogLineType::Error, std::string(err.what()) });
}
} catch (sol::error e) {
} catch (const sol::error& e) {
ERROR_LOG(Log::System, "Lua exception: %s", e.what());
lines_.push_back(LuaLogLine{ LogLineType::Error, std::string(e.what()) });
}