forked from Mirrors/openclonk
Fix HUD script errors when cursor does not include inventory control
parent
1cce689a67
commit
4257b84f84
|
@ -177,7 +177,7 @@ public func UpdateInteractionObject()
|
|||
}
|
||||
|
||||
var interactables = cursor->~GetInteractableObjects();
|
||||
if (!GetLength(interactables))
|
||||
if (!interactables || !GetLength(interactables))
|
||||
{
|
||||
HideInteraction();
|
||||
return;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue