Hi all,
I'm getting this really bizarre problem now cropping up in my game... it only happens on a release build on my iPod - not on my iPad(just running same iPhone version).. and not on the simulator...
take a look at the code and the output and you'll see that the 'type' variable has been mangled. Anybody got any idea what could be causing this ??
Thanks!
code
- (int)AddStoneWallFarm

int)xPos

int)yPos

int)inT ype
{
NsLog(@"AddStoneWallFarm(%d) xPos(%d) ypos(%d) type(%d)\n",numStoneWalls,xPos,yPos,(int)inType);
...
...
...
NsLog(@"Type = %d\n",(int)type);
...
switch(type)
...
case kOT_WallFarmYard:
case kOT_WallFarmYardLong:
{
//MyLog(@"Type = %d",(int)type);
[self AddStoneWallFarm:xPos:yPos

int)type];
break;
};
output
...
...
Type = 31
Type = 42
AddStoneWallFarm(1) xPos(-4) ypos(159) type(742)
Thanks if you can help -
Ross