瀏覽代碼

Correction of a bug with mob avail (#6578)

Introduced in https://github.com/rathena/rathena/commit/a725844553efb8e036f66d03347a000411a23f11
Fixed #6576

Thanks to @Vandersexxx !
Atemo 3 年之前
父節點
當前提交
80307eb86e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/map/npc.cpp

+ 1 - 1
src/map/npc.cpp

@@ -3678,7 +3678,7 @@ int npc_parseview(const char* w4, const char* start, const char* buffer, const c
 		if(!script_get_constant(viewid, &val_tmp)) {
 			std::shared_ptr<s_mob_db> mob = mobdb_search_aegisname(viewid);
 			if (mob != nullptr)
-				val = static_cast<int>(mob->vd.class_);
+				val = static_cast<int>(mob->id);
 			else {
 				ShowWarning("npc_parseview: Invalid NPC constant '%s' specified in file '%s', line'%d'. Defaulting to INVISIBLE. \n", viewid, filepath, strline(buffer,start-buffer));
 				val = JT_INVISIBLE;