Correction of a bug with mob avail (#6578)

Introduced in a725844553
Fixed #6576

Thanks to @Vandersexxx !
This commit is contained in:
Atemo 2022-02-01 20:36:49 +01:00 committed by GitHub
parent ad2660b037
commit 80307eb86e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;