(svn r1767) fixed mixed declarations and code in last commit (oops)
authorbjarni
Tue, 01 Feb 2005 22:17:38 +0000
changeset 1263 38ec6c6fc266
parent 1262 e3473b1afda9
child 1264 acebb2b01e32
(svn r1767) fixed mixed declarations and code in last commit (oops)
aircraft_cmd.c
--- a/aircraft_cmd.c	Tue Feb 01 22:04:53 2005 +0000
+++ b/aircraft_cmd.c	Tue Feb 01 22:17:38 2005 +0000
@@ -451,9 +451,9 @@
 		if (st->xy == 0 || st->airport_tile == 0 || GetAirport(st->airport_type)->terminals == NULL) {
 			if (p2 == 0) {
 				// the aircraft have to search for a hangar on it's own
+				uint32 temp = FindNearestHangar(v);
 				next_airport_has_hangar = false;
-				uint32 temp = FindNearestHangar(v);
-				if (HASBIT(temp, 16)) return CMD_ERROR; // the player do not own a hangar
+				if (HASBIT(temp, 16)) return CMD_ERROR; // the player does not own a hangar
 				st = GetStation(temp);
 				next_airport_index = (uint16)temp;
 			} else {