fix compile error for gcc version >9.3.0
This commit is contained in:
parent
9d8ecfb0b1
commit
afada1bceb
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