From 39921e63e3aa0fe14b201bede01c221499863927 Mon Sep 17 00:00:00 2001 From: Uladzislau Nikalayevich Date: Wed, 22 Jul 2020 20:21:36 +0300 Subject: [PATCH] Fixed detection of some dff's --- Client/mods/deathmatch/logic/CClientDFF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/mods/deathmatch/logic/CClientDFF.cpp b/Client/mods/deathmatch/logic/CClientDFF.cpp index 04344eac493..aa99814a849 100644 --- a/Client/mods/deathmatch/logic/CClientDFF.cpp +++ b/Client/mods/deathmatch/logic/CClientDFF.cpp @@ -369,5 +369,5 @@ bool CClientDFF::ReplaceVehicleModel(RpClump* pClump, ushort usModel, bool bAlph // Return true if data looks like DFF file contents bool CClientDFF::IsDFFData(const SString& strData) { - return strData.length() > 32 && memcmp(strData, "\x10\x00\x00\x00", 4) == 0; + return strData.length() > 32 && (memcmp(strData, "\x10\x00\x00\x00", 4) == 0 || memcmp(strData, "\x2B\x00\x00\x00", 4) == 0); }