From 4ff9faa4e62cfa8369df3f7d0e1896e4a673bf9b Mon Sep 17 00:00:00 2001 From: Paul Coene Date: Tue, 6 Jun 2023 08:30:41 -0400 Subject: [PATCH] [Illusions] RandomizeFeatures and SetGender were killing db texture (#3376) * [Illusions] RandomizeFeatures and SetGender were killing db texture * Found actual source of the problem. --- zone/mob.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/zone/mob.cpp b/zone/mob.cpp index b9dd4b2c3..95ed9e89c 100644 --- a/zone/mob.cpp +++ b/zone/mob.cpp @@ -2483,8 +2483,12 @@ void Mob::SendIllusionPacket( // update internal values for mob size = (in_size <= 0.0f) ? GetRaceGenderDefaultHeight(race, gender) : in_size; - texture = new_texture; - helmtexture = new_helmtexture; + if (new_texture != 0xFF) { + texture = new_texture; + } + if (new_helmtexture != 0xFF) { + helmtexture = new_helmtexture; + } haircolor = new_haircolor; beardcolor = new_beardcolor; eyecolor1 = new_eyecolor1;