console_cmds.c
changeset 1962 51ee4f459268
parent 1943 86e186684bf6
child 1992 2d080274ed85
--- a/console_cmds.c	Tue Jun 21 14:50:08 2005 +0000
+++ b/console_cmds.c	Tue Jun 21 16:28:17 2005 +0000
@@ -544,7 +544,7 @@
 
 	/* Check if company does exist */
 	index--;
-	p = DEREF_PLAYER(index);
+	p = GetPlayer(index);
 	if (!p->is_active) {
 		IConsoleError("Company does not exist.");
 		return true;