aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/graphics/je_lua_particle_system.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-12-08 11:53:02 +0800
committerchai <chaifix@163.com>2018-12-08 11:53:02 +0800
commitd34e5c9d7c6135e805f2cc231411cdcc9910190c (patch)
tree4ebb6e0b438269f8fe557de5ef85e82487febfc7 /src/lua/modules/graphics/je_lua_particle_system.cpp
parent39f653eb882dffa2f69209d192093f23588ff176 (diff)
*misc
Diffstat (limited to 'src/lua/modules/graphics/je_lua_particle_system.cpp')
-rw-r--r--src/lua/modules/graphics/je_lua_particle_system.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/modules/graphics/je_lua_particle_system.cpp b/src/lua/modules/graphics/je_lua_particle_system.cpp
index 8c2e4c7..05be4b7 100644
--- a/src/lua/modules/graphics/je_lua_particle_system.cpp
+++ b/src/lua/modules/graphics/je_lua_particle_system.cpp
@@ -244,7 +244,7 @@ namespace JinEngine
Sprite* spr = objSpr->getObject<Sprite>();
ps->addParticleSprite(spr);
int depn = (*obj).getDependenciesCount();
- (*obj).setDependency((int)ParticleSystemDependency::DEP_SPRITES + depn, objSpr->getSharedBase());
+ (*obj).setDependency((int)ParticleSystemDependency::DEP_SPRITES + depn, objSpr->getShared());
return 0;
}
@@ -266,7 +266,7 @@ namespace JinEngine
luax_pop(L, 1);
Sprite* spr = objSpr->getObject<Sprite>();
ps->addParticleSprite(spr);
- (*obj).setDependency((int)ParticleSystemDependency::DEP_SPRITES + depn + i - 1, objSpr->getSharedBase());
+ (*obj).setDependency((int)ParticleSystemDependency::DEP_SPRITES + depn + i - 1, objSpr->getShared());
}
return 0;
}