Add null check

This commit is contained in:
Bill 2022-03-18 21:29:31 -04:00
parent 5a8b7f933f
commit f6383d13c4

View File

@ -24,6 +24,8 @@ export class PetSizeData extends AnimationSizeData
if(postures.defaultPosture && postures.defaultPosture.length) this._defaultPosture = postures.defaultPosture;
if(!postures.postures) return false;
for(const posture of postures.postures)
{
if(this._posturesToAnimations.get(posture.id)) continue;