aboutsummaryrefslogtreecommitdiff
path: root/src/cract.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cract.cc')
-rw-r--r--src/cract.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cract.cc b/src/cract.cc
index 22e5b93..d6fd2ee 100644
--- a/src/cract.cc
+++ b/src/cract.cc
@@ -556,7 +556,8 @@ void TCreature::Move(Object Obj, int DestX, int DestY, int DestZ, uint8 Count){
::Move(this->ID, Obj, DestCon, MoveCount, false, DestObj);
}catch(RESULT r){
// NOTE(fusion): Attempt to exchange inventory items.
- if(DestY < 64 && DestObj != NONE
+ if(DestY >= INVENTORY_FIRST && DestY <= INVENTORY_LAST
+ && DestObj != NONE
&& (r == NOROOM
|| r == HANDSNOTFREE
|| r == HANDBLOCKED