mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r26284) -Fix: Comparison of NULL and char 0. (lbalbalba)
This commit is contained in:
parent
b12bf124c7
commit
9041473814
@ -475,7 +475,7 @@ void IConsoleCmdExec(const char *cmdstr)
|
||||
DEBUG(console, 8, "Token %d is: '%s'", i, tokens[i]);
|
||||
}
|
||||
|
||||
if (tokens[0] == '\0') return; // don't execute empty commands
|
||||
if (StrEmpty(tokens[0])) return; // don't execute empty commands
|
||||
/* 2. Determine type of command (cmd or alias) and execute
|
||||
* First try commands, then aliases. Execute
|
||||
* the found action taking into account its hooking code
|
||||
|
Loading…
Reference in New Issue
Block a user