about summary refs log tree commit diff
path: root/src/game/client/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/components')
-rw-r--r--src/game/client/components/skins.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/client/components/skins.cpp b/src/game/client/components/skins.cpp
index 16135164..d89d0647 100644
--- a/src/game/client/components/skins.cpp
+++ b/src/game/client/components/skins.cpp
@@ -118,6 +118,16 @@ void CSkins::Init()
 	// load skins
 	m_aSkins.clear();
 	Storage()->ListDirectory(IStorage::TYPE_ALL, "skins", SkinScan, this);
+	if(!m_aSkins.size())
+	{
+		Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "gameclient", "failed to load skins. folder='skins/'");
+		CSkin DummySkin;
+		DummySkin.m_OrgTexture = -1;
+		DummySkin.m_ColorTexture = -1;
+		str_copy(DummySkin.m_aName, "dummy", sizeof(DummySkin.m_aName));
+		DummySkin.m_BloodColor = vec3(1.0f, 1.0f, 1.0f);
+		m_aSkins.add(DummySkin);
+	}
 }
 
 int CSkins::Num()