delete interaction menu effect when menu is closed

This prevents a lot of effects without command target from floating around.
alut-include-path
Maikel de Vries 2017-01-22 10:49:58 +01:00
parent b51dbc3717
commit 8208a19c8f
1 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,9 @@ func Destruction()
var i = ContentsCount(), obj = nil;
while (obj = Contents(--i))
obj->RemoveObject(false);
// Remove check objects effect.
if (cursor)
RemoveEffect("IntCheckObjects", cursor);
}
// used as a static function