From 6a885d33aa1e5e067de87babfbde23e6563a4f5c Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Sun, 6 May 2012 18:24:56 +0200 Subject: [PATCH] Fixed incorrect Selection call to selected item when switching left and right hand. Sometimes also caused errors. --- planet/Objects.ocd/Libraries.ocd/ClonkControl.ocd/Script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planet/Objects.ocd/Libraries.ocd/ClonkControl.ocd/Script.c b/planet/Objects.ocd/Libraries.ocd/ClonkControl.ocd/Script.c index 14c53a5f5..70cde2537 100644 --- a/planet/Objects.ocd/Libraries.ocd/ClonkControl.ocd/Script.c +++ b/planet/Objects.ocd/Libraries.ocd/ClonkControl.ocd/Script.c @@ -131,7 +131,7 @@ public func SetHandItemPos(int hand, int inv) if(GetHandItem(hand2)) { this->~OnSlotFull(hand2); - GetItem(inv)->~Selection(this, hand2); + GetHandItem(hand2)->~Selection(this, hand2); } else this->~OnSlotEmpty(hand2);