diff --git a/src/utils/ParticleHelper.h b/src/utils/ParticleHelper.h index d74ba2e..64a1abe 100644 --- a/src/utils/ParticleHelper.h +++ b/src/utils/ParticleHelper.h @@ -1,5 +1,6 @@ //stolen from https://github.com/Alphalaneous/Projected-Stars/blob/main/src/ParticleHelper.hpp #pragma once +#include "Geode/cocos/cocoa/CCDictionary.h" #include using namespace geode::prelude; @@ -10,6 +11,7 @@ class ParticleHelper { static CCParticleSystemQuad* createStarParticles(int maxParticles) { auto dict = CCDictionary::createWithContentsOfFileThreadSafe("dragEffect.plist"); + if(!dict) dict = CCDictionary::create(); dict->setObject(CCString::create("1"), "emitterType"); dict->setObject(CCString::create("-1"), "duration");