From 80307eb86e2823a7430cfd886caa06aa5350ce2b Mon Sep 17 00:00:00 2001 From: Atemo Date: Tue, 1 Feb 2022 20:36:49 +0100 Subject: [PATCH] Correction of a bug with mob avail (#6578) Introduced in https://github.com/rathena/rathena/commit/a725844553efb8e036f66d03347a000411a23f11 Fixed #6576 Thanks to @Vandersexxx ! --- src/map/npc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/npc.cpp b/src/map/npc.cpp index 671dc54c83..a3b47e923f 100644 --- a/src/map/npc.cpp +++ b/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 mob = mobdb_search_aegisname(viewid); if (mob != nullptr) - val = static_cast(mob->vd.class_); + val = static_cast(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;