[Crash Fix] Update to location of qGlobals initialization (#4144)

This commit is contained in:
Mitch Freeman 2024-03-02 17:16:51 -04:00 committed by GitHub
parent 3003a59955
commit c4613e1b0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -284,6 +284,7 @@ Client::Client(EQStreamInterface *ieqs) : Mob(
PendingSacrifice = false;
controlling_boat_id = 0;
controlled_mob_id = 0;
qGlobals = nullptr;
if (!RuleB(Character, PerCharacterQglobalMaxLevel) && !RuleB(Character, PerCharacterBucketMaxLevel)) {
SetClientMaxLevel(0);
@ -311,7 +312,6 @@ Client::Client(EQStreamInterface *ieqs) : Mob(
aa_los_them_mob = nullptr;
los_status = false;
los_status_facing = false;
qGlobals = nullptr;
HideCorpseMode = HideCorpseNone;
PendingGuildInvitation = false;