Fixed minor bug in glk_image_get_info()
[projects/chimara/chimara.git] / libchimara / graphics.c
index 7f59915dafb3402ea94b1e7b32a408e0b705151c..a8a0318bd86ff19838c80a07a0849f284c851862 100644 (file)
@@ -220,7 +220,7 @@ glk_image_get_info(glui32 image, glui32 *width, glui32 *height)
 
        if(width != NULL)
                *width = found->width;
-       if(width != NULL)
+       if(height != NULL)
                *height = found->height;
        return TRUE;
 }