(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.

This commit is contained in:
rubidium
2008-05-08 11:50:34 +00:00
parent 2eef026fe3
commit 23fc96c3e8
28 changed files with 75 additions and 76 deletions

View File

@@ -811,7 +811,7 @@ void ShowPlayerGroup(PlayerID player, VehicleType vehicle_type)
WindowNumber num = (vehicle_type << 11) | VLW_GROUP_LIST | player;
DeleteWindowById(wc, num);
Window *w = AllocateWindowDescFront(&_group_desc, num);
Window *w = AllocateWindowDescFront<Window>(&_group_desc, num);
if (w == NULL) return;
w->window_class = wc;