Fixed index typo map_find_env

This commit is contained in:
sctt 2022-08-13 21:49:53 +02:00 committed by GitHub
parent 71622eabb4
commit 77fa0acbb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,7 +104,7 @@ bool FindEnv(const char aFilename[64], const int EnvID)
CQuad *pQuads = (CQuad *)InputMap.GetDataSwapped(pQuadLayer->m_Data);
int GroupID = 0, LayerRelativeID = 0;
if(!GetLayerGroupIDs(InputMap, i, GroupID, LayerRelativeID))
if(!GetLayerGroupIDs(InputMap, i + 1, GroupID, LayerRelativeID))
return false;
GetEnvelopedQuads(pQuads, pQuadLayer->m_NumQuads, EnvID, GroupID, LayerRelativeID, QuadsCounter, pEnvQuads);