- 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
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ FTexture *FMugShotFrame::GetTexture(const char *default_face, const char *skin_f
{
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];
if (uses_levels) //change the last character to the level
{