From 97eb89bc73f3c149e690fad276608f46182daff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefano=20Borz=C3=AC?= Date: Sun, 8 Oct 2023 16:22:09 +0200 Subject: [PATCH] fix: add null-check for target var in transmog_scripts.cpp (#137) --- src/transmog_scripts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transmog_scripts.cpp b/src/transmog_scripts.cpp index 66eb38c..cfd0d96 100644 --- a/src/transmog_scripts.cpp +++ b/src/transmog_scripts.cpp @@ -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); } };