fix if value is "0"

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@653 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Giles Williams 2006-07-10 19:21:42 +00:00
parent fd9c3cc7f9
commit dc631d7a74

View File

@ -84,7 +84,7 @@ static Quaternion quaternion_identity = { (GLfloat)1.0, (GLfloat)0.0, (GLfloat)0
{
id key = [keys objectAtIndex:i];
id value = [kdic objectForKey: key];
if ([value isKindOfClass:[NSString class]] && ([value intValue] == 0))
if ([value isKindOfClass:[NSString class]] && ([value intValue] == 0) && (![value isEqual:@"0"]))
{
char keychar = 0;
NSString* keystring = (NSString*)value;