mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-07-16 14:12:47 +00:00
[FIX] Memory leak caused by continuous F10 redrawing that for marker (add, remove) which creates new coordinate.
This commit is contained in:
@@ -185,7 +185,7 @@ EVENT = {
|
||||
ClassID = 0,
|
||||
MissionEnd = false,
|
||||
RegisterSceneryOnEvent = true,
|
||||
CreateMarkCoordinates = true,
|
||||
CreateMarkCoordinateOnEvent = true,
|
||||
}
|
||||
|
||||
world.event.S_EVENT_NEW_CARGO = world.event.S_EVENT_MAX + 1000
|
||||
@@ -1525,7 +1525,7 @@ function EVENT:onEvent( Event )
|
||||
if Event.idx then
|
||||
Event.MarkID=Event.idx
|
||||
Event.MarkVec3=Event.pos
|
||||
if self.CreateMarkCoordinates then
|
||||
if self.CreateMarkCoordinateOnEvent then
|
||||
Event.MarkCoordinate=COORDINATE:NewFromVec3(Event.pos)
|
||||
end
|
||||
Event.MarkText=Event.text
|
||||
|
||||
Reference in New Issue
Block a user