From fa062aa1411c041ecfd6a0bb90be45efdf838d8f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 17 Sep 2010 08:19:02 +0000 Subject: [PATCH] - fixed: DPlayerMenu::ClassChanged needs to call PickPlayerClass before setting the playerclass CVAR. SVN r2806 (trunk) --- src/menu/playermenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menu/playermenu.cpp b/src/menu/playermenu.cpp index b23a4d422..dab8f29fb 100644 --- a/src/menu/playermenu.cpp +++ b/src/menu/playermenu.cpp @@ -899,11 +899,11 @@ void DPlayerMenu::ClassChanged (FListMenuItem *li) if (li->GetValue(0, &sel)) { players[consoleplayer].userinfo.PlayerClass = sel-1; + PickPlayerClass(); cvar_set ("playerclass", sel == 0 ? "Random" : PlayerClass->Type->Meta.GetMetaString (APMETA_DisplayName)); - PickPlayerClass(); UpdateSkins(); UpdateColorsets(); UpdateTranslation();