Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Client/mods/deathmatch/logic/CClientTXD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ bool CClientTXD::AddClothingTexture(const std::string& modelName)
return false;
}

return g_pGame->GetRenderWare()->ClothesAddFile(m_FileData.data(), m_FileData.size(), modelName.c_str());
if (!g_pGame->GetRenderWare()->ClothesAddFile(m_FileData.data(), m_FileData.size(), modelName.c_str()))
return false;

m_bUsingFileDataForClothes = true;
return true;
}

bool CClientTXD::Import(unsigned short usModelID)
Expand Down
6 changes: 3 additions & 3 deletions Client/mods/deathmatch/logic/CClientTXD.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ class CClientTXD final : public CClientEntity
bool GetFilenameToUse(SString& strOutFilename);

SString m_strFilename;
bool m_bFilteringEnabled;
bool m_bIsRawData;
bool m_bUsingFileDataForClothes;
bool m_bFilteringEnabled = false;
bool m_bIsRawData = false;
bool m_bUsingFileDataForClothes = false;
SString m_FileData;
SReplacementTextures m_ReplacementTextures;
};
Loading