1
0
Fork 0

Simplify looking up the GUI subsystem.

This commit is contained in:
david 2003-01-18 21:10:49 +00:00
parent d8f4bfa9ae
commit b2713841b6

View file

@ -18,9 +18,7 @@ static void
action_callback (puObject * object)
{
GUIInfo * info = (GUIInfo *)object->getUserData();
NewGUI * gui =
(NewGUI *)globals->get_subsystem_mgr()
->get_group(FGSubsystemMgr::INIT)->get_subsystem("gui");
NewGUI * gui = (NewGUI *)globals->get_subsystem("gui");
gui->setCurrentWidget(info->widget);
for (int i = 0; i < info->bindings.size(); i++)
info->bindings[i]->fire();