Browse Source

Fixed vending and chatrooms checking for NPCs nearby (#4805)

* Thanks to @cydh
Daegaladh 5 years ago
parent
commit
ba76880364
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/map/npc.cpp

+ 2 - 1
src/map/npc.cpp

@@ -160,9 +160,10 @@ int npc_isnear_sub(struct block_list* bl, va_list args) {
 			if (skill->unit_nonearnpc_type&SKILL_NONEAR_TOMB && nd->subtype == NPCTYPE_TOMB)
 				return 1;
 		}
+		return 0;
 	}
 
-    return 0;
+	return 1;
 }
 
 bool npc_isnear(struct block_list * bl) {