Skip to content

Commit

Permalink
Fix SRAL_GetActiveEngines.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1maker committed Jan 4, 2025
1 parent 902c392 commit 167130c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SRC/SRAL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,8 @@ extern "C" SRAL_API int SRAL_GetActiveEngines(void) {
if (g_engines.empty())return 0;
int mask = 0;
for (Engine* e : g_engines) {
if (e)
mask |= e->GetActive();
if (e && e->GetActive())
mask |= e->GetNumber();
}
return mask;
}

0 comments on commit 167130c

Please sign in to comment.