Skip to content

Commit

Permalink
Fixup: deal with -Wdeprecated-anon-enum-enum-conversion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronVanGeffen committed May 20, 2024
1 parent 0992636 commit e40a167
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/openrct2-ui/windows/ProgressWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,11 @@ namespace OpenRCT2::Ui::Windows

void SetProgress(uint32_t currentProgress, uint32_t totalCount, StringId format)
{
_progressFormat = format == STR_NONE ? STR_STRING_M_OF_N : format;
if (format == STR_NONE)
_progressFormat = STR_STRING_M_OF_N;
else
_progressFormat = format;

_currentProgress = currentProgress;
_totalCount = totalCount;
Invalidate();
Expand Down

0 comments on commit e40a167

Please sign in to comment.