mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r3573) - Replace assert(0) with NOT_REACHED(). This commit sponsored by "giving Darkvater credit for the last three".
This commit is contained in:
parent
59333131a5
commit
9dba135f79
|
@ -2014,7 +2014,7 @@ UnitID GetFreeUnitNumber(byte type)
|
||||||
case VEH_Road: max = _patches.max_roadveh; break;
|
case VEH_Road: max = _patches.max_roadveh; break;
|
||||||
case VEH_Ship: max = _patches.max_ships; break;
|
case VEH_Ship: max = _patches.max_ships; break;
|
||||||
case VEH_Aircraft: max = _patches.max_aircraft; break;
|
case VEH_Aircraft: max = _patches.max_aircraft; break;
|
||||||
default: assert(0);
|
default: NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (max > gmax) {
|
if (max > gmax) {
|
||||||
|
|
Loading…
Reference in New Issue