Merge pull request #388 from ipochto/fix/case_unsigned_narrowing
Fix compiling for gcc > 9.3.0
This commit is contained in:
commit
6067ae2d79
1 changed files with 1 additions and 1 deletions
|
@ -493,7 +493,7 @@ static void DumpUnitInfo(CUnit &unit)
|
|||
fprintf(logf, "%lu: ", GameCycle);
|
||||
|
||||
const char *currentAction;
|
||||
switch (!unit.Orders.empty() ? unit.CurrentAction() : -1) {
|
||||
switch (!unit.Orders.empty() ? int(unit.CurrentAction()) : -1) {
|
||||
case -1: currentAction = "No Orders"; break;
|
||||
case UnitActionNone: currentAction = "None"; break;
|
||||
case UnitActionStill: currentAction = "Still"; break;
|
||||
|
|
Loading…
Add table
Reference in a new issue