Fix HUD script errors when cursor does not include inventory control

objectmenu
Sven Eberhardt 2016-01-24 18:15:55 -05:00
parent 1cce689a67
commit 4257b84f84
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ public func UpdateInteractionObject()
}
var interactables = cursor->~GetInteractableObjects();
if (!GetLength(interactables))
if (!interactables || !GetLength(interactables))
{
HideInteraction();
return;

View File

@ -118,7 +118,7 @@ private func UpdateInventory()
UpdateInventoryButtons(clonk);
// update inventory-slots
var hand_item_pos = clonk->GetHandItemPos(0);
var hand_item_pos = clonk->~GetHandItemPos(0);
for (var slot_info in inventory_slots)
{