- Fixed: FMugShotFrame::GetTexture() needs to NULL-check skin_face. (default_face might also be

empty. I don't know if that deserves special handling, but it doesn't crash, so I'll let blzut3
  worry about it.)

SVN r2419 (trunk)
This commit is contained in:
Randy Heit 2010-07-09 03:04:43 +00:00
parent 5a4dad1205
commit a401779715

View file

@ -84,7 +84,7 @@ FTexture *FMugShotFrame::GetTexture(const char *default_face, const char *skin_f
{ {
index = Graphic.Size() - 1; index = Graphic.Size() - 1;
} }
FString sprite(skin_face[0] != 0 ? skin_face : default_face, 3); FString sprite(skin_face != NULL && skin_face[0] != 0 ? skin_face : default_face, 3);
sprite += Graphic[index]; sprite += Graphic[index];
if (uses_levels) //change the last character to the level if (uses_levels) //change the last character to the level
{ {