From f685064c0c6efee4ffe2970f7fd6a9f6569a5f41 Mon Sep 17 00:00:00 2001 From: Wingthor Date: Sat, 8 Feb 2020 12:44:50 +0100 Subject: [PATCH] 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 --- Moose Development/Moose/Functional/Warehouse.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Functional/Warehouse.lua b/Moose Development/Moose/Functional/Warehouse.lua index 9c25b50f5..999eb97c9 100644 --- a/Moose Development/Moose/Functional/Warehouse.lua +++ b/Moose Development/Moose/Functional/Warehouse.lua @@ -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.