From bdb55945dff29dad56ff1857d4ef07446840200e Mon Sep 17 00:00:00 2001 From: Xawotihs Date: Wed, 16 Nov 2011 22:44:51 +0000 Subject: [PATCH] Fixed crash happening when loading resources from a .zip in a 64bits system --- projects/mtg/src/WCachedResource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/WCachedResource.cpp b/projects/mtg/src/WCachedResource.cpp index de6c14be1..bd185cf21 100644 --- a/projects/mtg/src/WCachedResource.cpp +++ b/projects/mtg/src/WCachedResource.cpp @@ -349,7 +349,7 @@ bool WCachedParticles::Attempt(const string& filename, int submode, int & error) // we're actually trying to read more than the file size now, but it's no problem. // Note that this fix is only to avoid the largest problems, filling a structure // by directly reading a file, is really a bad idea ... - fileSys->ReadFile(&(particles->nEmission), sizeof(hgeParticleSystemInfo) - 4); + fileSys->ReadFile(&(particles->nEmission), sizeof(hgeParticleSystemInfo) - sizeof(void*)); fileSys->CloseFile(); particles->sprite = NULL;