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:
Wingthor 2020-02-08 12:44:50 +01:00
parent b68e254bc0
commit f685064c0c

View File

@ -4896,7 +4896,7 @@ function WAREHOUSE:onafterChangeCountry(From, Event, To, Country)
-- Airbase could have been captured before and already belongs to the new coalition.
-- Check if Warehouse has a arbiase atthached
local airbasecoaltion
if self.airbasse ~= nil then
if self.airbase ~= nil then
local airbase=AIRBASE:FindByName(self.airbasename)
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.