Fix charpanel always showing player 0 stats

This commit is contained in:
Anders Jenbo 2021-09-10 02:36:24 +02:00
commit 2d47c12515
5 changed files with 8 additions and 3 deletions

View file

@ -333,6 +333,8 @@ TEST(Writehero, pfile_write_hero)
leveltype = DTYPE_TOWN;
MyPlayerId = 0;
MyPlayer = &Players[MyPlayerId];
_uiheroinfo info {};
strcpy(info.name, "TestPlayer");
info.heroclass = HeroClass::Rogue;