- fixed: When loading a savegame the player class in the userinfo needs to be updated.

- fixed: Class pointers should not be added to the list of garbage collected pointers.
- fixed several warnings in the event code.
This commit is contained in:
Christoph Oelckers 2017-02-15 11:55:08 +01:00
commit d8ebbcfc08
8 changed files with 20 additions and 6 deletions

View file

@ -832,7 +832,10 @@ void CopyPlayer(player_t *dst, player_t *src, const char *name)
else
{
dst->userinfo.TransferFrom(uibackup);
// The player class must come from the save, so that the menu reflects the currently playing one.
dst->userinfo.PlayerClassChanged(src->mo->GetClass()->DisplayName);
}
// Validate the skin
dst->userinfo.SkinNumChanged(R_FindSkin(skins[dst->userinfo.GetSkin()].name, dst->CurrentPlayerClass));