diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-08-28 19:08:47 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-08-28 19:08:47 -0300 |
| commit | c670fea4acd1692f32956de5d641201830b123b0 (patch) | |
| tree | a0e07e6ececa1e79c9b4b8aa56226973976c672f | |
| parent | 29b62e631b4db85126ddf860106735975487bbeb (diff) | |
| download | game-c670fea4acd1692f32956de5d641201830b123b0.tar.gz game-c670fea4acd1692f32956de5d641201830b123b0.zip | |
fix item exchange - fixes #8
| -rw-r--r-- | src/cract.cc | 3 |
1 files changed, 1 insertions, 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; } |
