2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 23:07:42 +00:00

Add Global Project

Fix Particle Crashes
This commit is contained in:
2016-04-02 01:42:00 -07:00
parent 32b4815ab5
commit dc978a4c79
7 changed files with 28 additions and 5 deletions

View File

@@ -1118,7 +1118,7 @@ bool CParticleDataFactory::CreateGPSM(CGenDescription* fillDesc, CInputStream& i
}
/* Now for our custom additions, if available */
if (!in.atEnd())
if (!in.atEnd() && (in.position() + 4) < in.length())
{
clsId = GetClassID(in);
if (clsId == 0xFFFFFFFF)