summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 0d0ebe4bf..22f165374 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -8249,6 +8249,8 @@ void pc_overheat(struct map_session_data *sd, int val) {
bool pc_isautolooting(struct map_session_data *sd, int nameid)
{
int i;
+ if( !sd->state.autolooting )
+ return false;
ARR_FIND(0, AUTOLOOTITEM_SIZE, i, sd->state.autolootid[i] == nameid);
return (i != AUTOLOOTITEM_SIZE);
}