Setup/BLP

* fix using replacement patch files as images
This commit is contained in:
Sarjuuk
2024-05-28 20:16:08 +02:00
parent 2c451b8deb
commit a87b869896

View File

@@ -57,10 +57,10 @@
// predict replacement patch files
// ref: http://www.zezula.net/en/mpq/patchfiles.html
if (substr($data, 0x0, 0x4) == "PTCH")
if (substr($data, 0x0, 4) == "PTCH")
{
// strip patch header
if (substr($data, 0x40, 0x43) == "COPY")
if (substr($data, 0x40, 4) == "COPY")
$data = substr($data, 0x44);
else
{