Skip to content

Commit cf3608d

Browse files
authored
Fixed detection of some dff's (#1575)
1 parent 6d662f3 commit cf3608d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client/mods/deathmatch/logic/CClientDFF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,5 +369,5 @@ bool CClientDFF::ReplaceVehicleModel(RpClump* pClump, ushort usModel, bool bAlph
369369
// Return true if data looks like DFF file contents
370370
bool CClientDFF::IsDFFData(const SString& strData)
371371
{
372-
return strData.length() > 32 && memcmp(strData, "\x10\x00\x00\x00", 4) == 0;
372+
return strData.length() > 32 && (memcmp(strData, "\x10\x00\x00\x00", 4) == 0 || memcmp(strData, "\x2B\x00\x00\x00", 4) == 0);
373373
}

0 commit comments

Comments
 (0)