fix crash in release mode (#17592)

This commit is contained in:
minggo 2017-03-27 15:19:24 +08:00 committed by GitHub
parent 5341f7517e
commit c8af3fe0bd
1 changed files with 5 additions and 4 deletions

View File

@ -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)