mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
fixed the typo on self.airbasse to self.airbase.
Tested with and without this line `SetAirbase(AIRBASE:FindByName(AIRBASE.Caucasus.Kutaisi))` in the test script. Resolves issue #1258
This commit is contained in:
parent
b68e254bc0
commit
f685064c0c
@ -4896,7 +4896,7 @@ function WAREHOUSE:onafterChangeCountry(From, Event, To, Country)
|
|||||||
-- Airbase could have been captured before and already belongs to the new coalition.
|
-- Airbase could have been captured before and already belongs to the new coalition.
|
||||||
-- Check if Warehouse has a arbiase atthached
|
-- Check if Warehouse has a arbiase atthached
|
||||||
local airbasecoaltion
|
local airbasecoaltion
|
||||||
if self.airbasse ~= nil then
|
if self.airbase ~= nil then
|
||||||
local airbase=AIRBASE:FindByName(self.airbasename)
|
local airbase=AIRBASE:FindByName(self.airbasename)
|
||||||
airbasecoaltion=airbase:GetCoalition()
|
airbasecoaltion=airbase:GetCoalition()
|
||||||
else -- Warehouse has no airbase attached so just keep whatever, self.airbase will still be nil since CoalitionNew will not be nil if Warehouse have a airbse attacjed.
|
else -- Warehouse has no airbase attached so just keep whatever, self.airbase will still be nil since CoalitionNew will not be nil if Warehouse have a airbse attacjed.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user