Fixes BG class requirement check (#5208)

* Changes to actual class ID associated to player.
Thanks to @vykimo!
This commit is contained in:
vykimo 2020-07-13 14:52:24 +02:00 committed by GitHub
parent f9974170c9
commit 07fd129b20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -878,7 +878,7 @@ bool bg_queue_check_joinable(std::shared_ptr<s_battleground_type> 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;
}