Skip to content

Commit

Permalink
fix: add null-check for target var in transmog_scripts.cpp (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
Helias committed Oct 8, 2023
1 parent 4ab50a0 commit 97eb89b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transmog_scripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ class npc_transmogrifier : public CreatureScript
}
}

return sTransmogrification->IsEnabled() && !target->GetPlayerSetting("mod-transmog", SETTING_HIDE_TRANSMOG).value;
return sTransmogrification->IsEnabled() && (target && !target->GetPlayerSetting("mod-transmog", SETTING_HIDE_TRANSMOG).value);
}
};

Expand Down

0 comments on commit 97eb89b

Please sign in to comment.