修复对象池直接执行clear方法报错问题

This commit is contained in:
dgflash
2025-03-25 22:12:23 +08:00
parent b3c2cbfc4b
commit 190f02ff81

View File

@@ -202,8 +202,8 @@ export class EffectSingleCase {
*/
clear(path?: string) {
if (path) {
var np = this.effects.get(path)!;
np.clear();
var np = this.effects.get(path);
if (np) np.clear();
}
else {
this.effects.forEach(np => {