mirror of https://github.com/axmolengine/axmol.git
issue #2771: add #ifdef CC_USE_PHYSICS to CC_SAFE_DELETE(_physicsWorld)
This commit is contained in:
parent
c99e4e95a5
commit
3dcd1bc8b1
|
@ -44,7 +44,9 @@ Scene::Scene()
|
|||
|
||||
Scene::~Scene()
|
||||
{
|
||||
#ifdef CC_USE_PHYSICS
|
||||
CC_SAFE_DELETE(_physicsWorld);
|
||||
#endif
|
||||
}
|
||||
|
||||
bool Scene::init()
|
||||
|
|
Loading…
Reference in New Issue