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 3d56aa2..22e5b93 100644
--- a/src/cract.cc
+++ b/src/cract.cc
@@ -1,5 +1,6 @@
#include "cr.hh"
#include "config.hh"
+#include "info.hh"
#include "operate.hh"
#include "stubs.hh"
@@ -497,7 +498,7 @@ void TCreature::Move(Object Obj, int DestX, int DestY, int DestZ, uint8 Count){
if(DestY >= INVENTORY_FIRST && DestY <= INVENTORY_LAST){
DestCon = GetBodyContainer(this->ID, DestY);
DestObj = GetBodyObject(this->ID, DestY);
- }else if(DestY >= 64 && DestY < 80){
+ }else if(DestY >= CONTAINER_FIRST && DestY <= CONTAINER_LAST){
DestCon = GetBodyContainer(this->ID, DestY);
if(DestZ < 254){
// TODO(fusion): The last argument to `GetObject` is the object