Skip to content

Commit

Permalink
Update Event.lua
Browse files Browse the repository at this point in the history
- Set `Event.IniGroupName` from db in case group does not exist any more
  • Loading branch information
funkyfranky committed Nov 15, 2024
1 parent 6c77378 commit dce9631
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 @@ -1329,6 +1329,7 @@ function EVENT:onEvent( Event )
end

Event.IniDCSGroupName = Event.IniUnit and Event.IniUnit.GroupName or ""
Event.IniGroupName=Event.IniDCSGroupName --At least set the group name because group might not exist any more
if Event.IniDCSGroup and Event.IniDCSGroup:isExist() then
Event.IniDCSGroupName = Event.IniDCSGroup:getName()
Event.IniGroup = GROUP:FindByName( Event.IniDCSGroupName )
Expand Down

0 comments on commit dce9631

Please sign in to comment.