summaryrefslogtreecommitdiffstats
path: root/src/render/PlayerSkin.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-08-30 22:24:39 +0200
committerGitHub <noreply@github.com>2020-08-30 22:24:39 +0200
commitb7456c604db963cd7ec065b896d23640d5713167 (patch)
tree190857b8b0db08b78a17fb5bdfaefa29768834aa /src/render/PlayerSkin.cpp
parentstupid zone load fix (diff)
parentCGame done, Peds, fixes (diff)
downloadre3-b7456c604db963cd7ec065b896d23640d5713167.tar
re3-b7456c604db963cd7ec065b896d23640d5713167.tar.gz
re3-b7456c604db963cd7ec065b896d23640d5713167.tar.bz2
re3-b7456c604db963cd7ec065b896d23640d5713167.tar.lz
re3-b7456c604db963cd7ec065b896d23640d5713167.tar.xz
re3-b7456c604db963cd7ec065b896d23640d5713167.tar.zst
re3-b7456c604db963cd7ec065b896d23640d5713167.zip
Diffstat (limited to 'src/render/PlayerSkin.cpp')
-rw-r--r--src/render/PlayerSkin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/PlayerSkin.cpp b/src/render/PlayerSkin.cpp
index b3e82cd9..261bbec0 100644
--- a/src/render/PlayerSkin.cpp
+++ b/src/render/PlayerSkin.cpp
@@ -99,7 +99,7 @@ CPlayerSkin::GetSkinTexture(const char *texName)
CTxdStore::PopCurrentTxd();
if (tex != nil) return tex;
- if (strcmp(DEFAULT_SKIN_NAME, texName) == 0)
+ if (strcmp(DEFAULT_SKIN_NAME, texName) == 0 || texName[0] == '\0')
sprintf(gString, "models\\generic\\player.bmp");
else
sprintf(gString, "skins\\%s.bmp", texName);