Skip to content

Commit

Permalink
🐛 Fixed build with fmt 8
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherFoxGuy committed Dec 21, 2023
1 parent 3d13ad9 commit 389ea04
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions source/main/scripting/ScriptEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,23 @@ int ScriptEngine::executeContextAndHandleErrors(ScriptUnitId_t nid)
if (context->GetFunction())
{
SLOG(fmt::format("The script ended with error code asCONTEXT_NOT_PREPARED; Function to execute: {},currently triggered event: {}, NID: {}",
context->GetFunction()->GetName(), fmt::underlying(m_currently_executing_event_trigger), nid));
context->GetFunction()->GetName(),
#if FMT_VERSION >= 100000
fmt::underlying(m_currently_executing_event_trigger)
#else
m_currently_executing_event_trigger
#endif
, nid));
}
else
{
SLOG(fmt::format("The script ended with error code asCONTEXT_NOT_PREPARED; Function to execute NOT SET,currently triggered event: {}, NID: {}",
fmt::underlying(m_currently_executing_event_trigger), nid));
SLOG(fmt::format("The script ended with error code asCONTEXT_NOT_PREPARED; Function to execute NOT SET,currently triggered event: {}, NID: {}",
#if FMT_VERSION >= 100000
fmt::underlying(m_currently_executing_event_trigger)
#else
m_currently_executing_event_trigger
#endif
, nid));
}
}
else
Expand Down

0 comments on commit 389ea04

Please sign in to comment.