Skip to content

Commit

Permalink
#EVENT - Fix for TgtUnit Name being unobtainable
Browse files Browse the repository at this point in the history
  • Loading branch information
Applevangelist committed Oct 29, 2024
1 parent be87103 commit dfe2ed2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Moose Development/Moose/Core/Event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1474,6 +1474,7 @@ function EVENT:onEvent( Event )
---
Event.TgtDCSUnit = Event.target
Event.TgtDCSUnitName = Event.TgtDCSUnit:getName()
if Event.TgtDCSUnitName==nil then return end
Event.TgtUnitName = Event.TgtDCSUnitName
Event.TgtUnit = SCENERY:Register( Event.TgtDCSUnitName, Event.target )
Event.TgtCategory = Event.TgtDCSUnit:getDesc().category
Expand Down

0 comments on commit dfe2ed2

Please sign in to comment.