src/misc_cmd.cpp
changeset 9652 0405e98d8e96
parent 9645 aee985cc98b5
child 9659 187142ff9b6c
--- a/src/misc_cmd.cpp	Thu Jul 17 16:38:26 2008 +0000
+++ b/src/misc_cmd.cpp	Thu Jul 17 20:13:01 2008 +0000
@@ -35,7 +35,7 @@
 {
 	PlayerFace pf = (PlayerFace)p2;
 
-	if (!IsValidPlayerFace(pf)) return CMD_ERROR;
+	if (!IsValidPlayerIDFace(pf)) return CMD_ERROR;
 
 	if (flags & DC_EXEC) {
 		GetPlayer(_current_player)->face = pf;
@@ -366,7 +366,7 @@
 
 	/* You can only transfer funds that is in excess of your loan */
 	if (p->player_money - p->current_loan < amount.GetCost() || amount.GetCost() <= 0) return CMD_ERROR;
-	if (!_networking || !IsValidPlayer((PlayerID)p2)) return CMD_ERROR;
+	if (!_networking || !IsValidPlayerID((PlayerID)p2)) return CMD_ERROR;
 
 	if (flags & DC_EXEC) {
 		/* Add money to player */