From c670fea4acd1692f32956de5d641201830b123b0 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Thu, 28 Aug 2025 19:08:47 -0300 Subject: fix item exchange - fixes #8 --- src/cract.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cract.cc b/src/cract.cc index 7b5673e..dea0ae2 100644 --- a/src/cract.cc +++ b/src/cract.cc @@ -550,7 +550,6 @@ void TCreature::Move(Object Obj, int DestX, int DestY, int DestZ, uint8 Count){ } try{ - // TODO(fusion): Find out what is this last parameter to `Move`. ::Move(this->ID, Obj, DestCon, MoveCount, false, DestObj); }catch(RESULT r){ // NOTE(fusion): Attempt to exchange inventory items. @@ -562,7 +561,7 @@ void TCreature::Move(Object Obj, int DestX, int DestY, int DestZ, uint8 Count){ || r == ONEWEAPONONLY)){ Object ObjCon = Obj.getContainer(); ::Move(this->ID, DestObj, ObjCon, -1, false, NONE); - ::Move(this->ID, Obj, DestCon, MoveCount, false, NONE); + ::Move(this->ID, Obj, DestCon, MoveCount, false, DestObj); }else{ throw; } -- cgit v1.2.3