Fix old Lua breakage
Works around a problem in the old Lua API where a trait lookup would
not find the correct class and make the script crash.
In this instance, `Game.modData.ObjectCreator.FindType("RallyPoint")`
return `OpenRA.Mods.Common.Effects.RallyPoint` instead of the expected
`OpenRA.Mods.Common.RallyPoint`.
The other change is an oversight from the recent warhead rewrites.
Fixes #6728
This commit is contained in:
@@ -194,7 +194,7 @@ SetupWorld = function()
|
||||
end
|
||||
end)
|
||||
|
||||
Production.SetRallyPoint(WarFactory, Rallypoint)
|
||||
-- Production.SetRallyPoint(WarFactory, Rallypoint)
|
||||
Production.EventHandlers.Setup(soviets)
|
||||
|
||||
-- RunAfterDelay is used so that the 'Building captured' and 'Mission accomplished' sounds don't play at the same time
|
||||
|
||||
Reference in New Issue
Block a user