fixed a memleak in AdWhirlConfig.m
added a TODO about a compiler warning I received that was not flagged in the code.
This commit is contained in:
@@ -251,7 +251,8 @@ PIXEL_TYPE GameOption::asColor(PIXEL_TYPE fallback)
|
||||
color[subpixel] = (unsigned char) atoi(temp.c_str());
|
||||
if (subpixel == 2)
|
||||
color[3] = 255;
|
||||
|
||||
|
||||
// TODO: WARNING - not all the values of color may be initialized at this point. Do we need to initialize the array to some value?
|
||||
return ARGB(color[3],color[0],color[1],color[2]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user