fix: add null-check for target var in transmog_scripts.cpp (#137)

This commit is contained in:
Stefano Borzì
2023-10-08 16:22:09 +02:00
committed by GitHub
parent 4ab50a0d4c
commit 97eb89bc73

View File

@@ -364,7 +364,7 @@ public:
}
}
return sTransmogrification->IsEnabled() && !target->GetPlayerSetting("mod-transmog", SETTING_HIDE_TRANSMOG).value;
return sTransmogrification->IsEnabled() && (target && !target->GetPlayerSetting("mod-transmog", SETTING_HIDE_TRANSMOG).value);
}
};