From 07fd129b20a6ea4b6eff67cf22e1f7860c89b49b Mon Sep 17 00:00:00 2001 From: vykimo Date: Mon, 13 Jul 2020 14:52:24 +0200 Subject: [PATCH] Fixes BG class requirement check (#5208) * Changes to actual class ID associated to player. Thanks to @vykimo! --- src/map/battleground.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/battleground.cpp b/src/map/battleground.cpp index 7c25a4370c..22d6af021c 100644 --- a/src/map/battleground.cpp +++ b/src/map/battleground.cpp @@ -878,7 +878,7 @@ bool bg_queue_check_joinable(std::shared_ptr bg, struct map nullpo_retr(false, sd); for (const auto &job : bg->job_restrictions) { // Check class requirement - if (sd->class_ == job) { + if (sd->status.class_ == job) { clif_bg_queue_apply_result(BG_APPLY_PLAYER_CLASS, name, sd); return false; }