mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Added Reset of event subscriptions after GROUP:Respawn()
This commit is contained in:
parent
51c1da3557
commit
12948f583d
@ -834,6 +834,9 @@ function GROUP:Respawn( Template )
|
||||
|
||||
self:Destroy()
|
||||
_DATABASE:Spawn( Template )
|
||||
|
||||
self:ResetEvents()
|
||||
|
||||
end
|
||||
|
||||
--- Returns the group template from the @{DATABASE} (_DATABASE object).
|
||||
@ -1085,7 +1088,7 @@ do -- Event Handling
|
||||
--- Reset the subscriptions.
|
||||
-- @param #GROUP self
|
||||
-- @return #GROUP
|
||||
function GROUP:ResetEvents( Event )
|
||||
function GROUP:ResetEvents()
|
||||
|
||||
self:EventDispatcher():Reset( self )
|
||||
|
||||
|
||||
@ -994,7 +994,7 @@ do -- Event Handling
|
||||
--- Reset the subscriptions.
|
||||
-- @param #UNIT self
|
||||
-- @return #UNIT
|
||||
function UNIT:ResetEvents( Event )
|
||||
function UNIT:ResetEvents()
|
||||
|
||||
self:EventDispatcher():Reset( self )
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user