mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-09 19:10:38 +00:00
(svn r23863) -Fix (r22981): '' != ' == 0'.
This commit is contained in:
parent
8beedd4cb6
commit
99c1f8af97
@ -49,7 +49,7 @@ static int CDECL EngineNumberSorter(const EngineID *a, const EngineID *b)
|
|||||||
*/
|
*/
|
||||||
void InvalidateAutoreplaceWindow(EngineID e, GroupID id_g)
|
void InvalidateAutoreplaceWindow(EngineID e, GroupID id_g)
|
||||||
{
|
{
|
||||||
if (GetGroupNumEngines(_local_company, id_g, e) || GetGroupNumEngines(_local_company, ALL_GROUP, e) == 0) {
|
if (GetGroupNumEngines(_local_company, id_g, e) == 0 || GetGroupNumEngines(_local_company, ALL_GROUP, e) == 0) {
|
||||||
/* We don't have any of this engine type.
|
/* We don't have any of this engine type.
|
||||||
* Either we just sold the last one, we build a new one or we stopped replacing it.
|
* Either we just sold the last one, we build a new one or we stopped replacing it.
|
||||||
* In all cases, we need to update the left list */
|
* In all cases, we need to update the left list */
|
||||||
|
Loading…
Reference in New Issue
Block a user