issue #2771: add #ifdef CC_USE_PHYSICS to CC_SAFE_DELETE(_physicsWorld)

This commit is contained in:
boyu0 2013-10-11 10:08:51 +08:00
parent c99e4e95a5
commit 3dcd1bc8b1
1 changed files with 2 additions and 0 deletions

View File

@ -44,7 +44,9 @@ Scene::Scene()
Scene::~Scene()
{
#ifdef CC_USE_PHYSICS
CC_SAFE_DELETE(_physicsWorld);
#endif
}
bool Scene::init()