From ce8e259441410aba3f2345333003032ed9c45d65 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 10 Dec 2018 11:46:29 +0800 Subject: =?UTF-8?q?*=E5=88=A0=E9=99=A4shared=E7=9A=84lua=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/modules/graphics/je_lua_particle_system.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lua/modules/graphics/je_lua_particle_system.cpp') diff --git a/src/lua/modules/graphics/je_lua_particle_system.cpp b/src/lua/modules/graphics/je_lua_particle_system.cpp index 0b348ad..0c42209 100644 --- a/src/lua/modules/graphics/je_lua_particle_system.cpp +++ b/src/lua/modules/graphics/je_lua_particle_system.cpp @@ -242,7 +242,7 @@ namespace JinEngine Sprite* spr = objSpr->getObject(); ps->addParticleSprite(spr); int depn = (*obj).getDependenciesCount(); - (*obj).setDependency((int)ParticleSystemDependency::DEP_SPRITES + depn, objSpr->getShared()); + (*obj).setDependency((int)ParticleSystemDependency::DEP_SPRITES + depn, objSpr); return 0; } @@ -264,7 +264,7 @@ namespace JinEngine luax_pop(L, 1); Sprite* spr = objSpr->getObject(); ps->addParticleSprite(spr); - (*obj).setDependency((int)ParticleSystemDependency::DEP_SPRITES + depn + i - 1, objSpr->getShared()); + (*obj).setDependency((int)ParticleSystemDependency::DEP_SPRITES + depn + i - 1, objSpr); } return 0; } -- cgit v1.1-26-g67d0