diff --git a/gav/menu/Menu.cpp b/gav/menu/Menu.cpp index fbea445..df0e07f 100644 --- a/gav/menu/Menu.cpp +++ b/gav/menu/Menu.cpp @@ -67,7 +67,7 @@ int Menu::execute(InputState *is, std::stack &s) for ( unsigned int it = 0; it < items.size(); it++ ) { label = items[it]->getLabel().c_str(); rect.x = (configuration.env.w / 2) - - strlen(label)*(cga->charWidth())/2; // UGLY + items[it]->getLabel().length()*(cga->charWidth())/2; // UGLY if (it == (unsigned int) currentItem) font = cgaInv; else