interaction menu: do OnClose-callbacks if the Clonk/object moves out of range (#1466)

shapetextures
David Dormagen 2015-11-30 09:40:53 +01:00
parent 2280710d39
commit 7f5e85a82a
1 changed files with 2 additions and 0 deletions

View File

@ -189,6 +189,8 @@ func UpdateObjects(array new_objects)
// sub menus close automatically (and remove their dummy) due to a clever usage of OnClose
current_menus[i].menu_object->RemoveObject();
current_menus[i] = nil;
// Notify the target of the now closed menu.
DoInteractionMenuClosedCallback(target);
}
current_objects = new_objects;