[Illusions] RandomizeFeatures and SetGender were killing db texture (#3376)

* [Illusions] RandomizeFeatures and SetGender were killing db texture

* Found actual source of the problem.
This commit is contained in:
Paul Coene
2023-06-06 08:30:41 -04:00
committed by GitHub
parent 17fc350d46
commit 4ff9faa4e6
+6 -2
View File
@@ -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;