mirror of https://github.com/axmolengine/axmol.git
fix crash in release mode (#17592)
This commit is contained in:
parent
5341f7517e
commit
c8af3fe0bd
|
@ -78,10 +78,11 @@ local function setEmitterPosition()
|
|||
end
|
||||
|
||||
local function update(dt)
|
||||
if emitter ~= nil then
|
||||
local str = "" .. emitter:getParticleCount()
|
||||
-- labelAtlas:setString("" .. str)
|
||||
end
|
||||
-- emitter may be released, for example it invokes emitter:setAutoRemoveOnFinish(true)
|
||||
-- if emitter ~= nil then
|
||||
-- local str = "" .. emitter:getParticleCount()
|
||||
-- -- labelAtlas:setString("" .. str)
|
||||
-- end
|
||||
end
|
||||
|
||||
local function baseLayer_onEnterOrExit(tag)
|
||||
|
|
Loading…
Reference in New Issue