From fde99748c0972e137952b118f8b651d725ad37dc Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 29 Nov 2005 22:29:59 +0000 Subject: (svn r3248) - Codechange: Change interface of CanRefitTo() to supply the engine type directly instead of getting it from a vehicle. This allows the function to be used before vehicles are involved. --- aircraft_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'aircraft_cmd.c') diff --git a/aircraft_cmd.c b/aircraft_cmd.c index eaeeb0c84..06aef2916 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -496,7 +496,7 @@ int32 CmdRefitAircraft(int x, int y, uint32 flags, uint32 p1, uint32 p2) avi = AircraftVehInfo(v->engine_type); /* Check cargo */ - if (new_cid > NUM_CARGO || !CanRefitTo(v, new_cid)) return CMD_ERROR; + if (new_cid > NUM_CARGO || !CanRefitTo(v->engine_type, new_cid)) return CMD_ERROR; SET_EXPENSES_TYPE(EXPENSES_AIRCRAFT_RUN); -- cgit v1.2.3-54-g00ecf