Skip to content

Commit

Permalink
#EVENT Fix for scenery sometimes nit having a getName() function
Browse files Browse the repository at this point in the history
  • Loading branch information
Applevangelist committed Sep 27, 2024
1 parent e9d75f6 commit 68298fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Moose Development/Moose/Core/Event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@ function EVENT:onEvent( Event )
-- Scenery
---
Event.IniDCSUnit = Event.initiator
Event.IniDCSUnitName = Event.IniDCSUnit:getName()
Event.IniDCSUnitName = Event.IniDCSUnit.getName and Event.IniDCSUnit:getName() or "Scenery no name "..math.random(1,20000)
Event.IniUnitName = Event.IniDCSUnitName
Event.IniUnit = SCENERY:Register( Event.IniDCSUnitName, Event.initiator )
Event.IniCategory = Event.IniDCSUnit:getDesc().category
Expand Down

0 comments on commit 68298fc

Please sign in to comment.