[applied] two warning fixes for the GUI

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

[applied] two warning fixes for the GUI

Post by hendu »

https://sourceforge.net/tracker/index.p ... tid=540678

CGUIFont had a warning about unhandled texture enums, the attached patch prints a message if an unknown texture is passed.

CGUITreeView.cpp:699: warning: 'selIdx' may be used uninitialized in this function
The attached patch initializes it to -1, which I assume is a correct invalid value for it. I'm not 100% sure on it, if it's a correct value for a selected index, please init the variable with a suitable value.
Post Reply