I discovered that the problem starts with j2b2World(Json::Value& worldValue, b2World* world) method in b2dJson.cpp
I guess there is a problem with this code block :
Code: Select all
int i = 0;
Json::Value bodyValue = worldValue["body"][i];
while ( !bodyValue.isNull() ) {
b2Body* body = j2b2Body(world, bodyValue);
readCustomPropertiesFromJson(body, bodyValue);
m_bodies.push_back(body);
m_indexToBodyMap[i] = body;
i++;
bodyValue = worldValue["body"][i];
}
I need to use Google IAP plugin in cocos2d-x and a script called gameDevGuide.sh (in cocos2d/plugin/tools folder ) makes that change to Application.mk
I am using cocos2d-x 3.3 final and Android NDK r10.
What should I do to fix that problem ? Thanks in advance.