mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
UNIT Register - small fix for trains
This commit is contained in:
parent
a777997f79
commit
092434a103
@ -120,7 +120,10 @@ function UNIT:Register( UnitName )
|
||||
local unit=Unit.getByName(self.UnitName)
|
||||
|
||||
if unit then
|
||||
self.GroupName=unit:getGroup():getName()
|
||||
local group = unit:getGroup()
|
||||
if group then
|
||||
self.GroupName=group:getName()
|
||||
end
|
||||
end
|
||||
|
||||
-- Set event prio.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user