mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- 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:
parent
5a4dad1205
commit
a401779715
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue