Ingo, that code is not buggy!
You can say that it is a bad approuch, but it is not a bug!
Besides, I don't think it's a bad approuch. Your code is maybe a better approuch. But in the other hand is buggy, so please let my code be there.
Buggy, why, you may ask...
Imagine this simple and fictional code:
�
#define MNID_START 1
menu->additem("Start Game", MNID_START);
menu->additem("Options");
if(menu->check() == MNID_START)
startgame();
�
With your code, when you pressed Options, the game would also start. Have a look at it again and guess why ;-)
SVN-Revision: 685