forked from mirror/OpenTTD
(svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer
This commit is contained in:
@@ -544,7 +544,7 @@ DEF_CONSOLE_CMD(ConResetCompany)
|
||||
|
||||
/* Check if company does exist */
|
||||
index--;
|
||||
p = DEREF_PLAYER(index);
|
||||
p = GetPlayer(index);
|
||||
if (!p->is_active) {
|
||||
IConsoleError("Company does not exist.");
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user