- fixed: DPlayerMenu::ClassChanged needs to call PickPlayerClass before setting the playerclass CVAR.

SVN r2806 (trunk)
This commit is contained in:
Christoph Oelckers 2010-09-17 08:19:02 +00:00
parent ae3c60454f
commit fa062aa141
1 changed files with 1 additions and 1 deletions

View File

@ -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();