Skip to content

Commit

Permalink
player: add BUGFIX for CreatePlayer
Browse files Browse the repository at this point in the history
The _pBaseToBlk field of the player struct is never set
if creating a New Game using an existing save (since CreatePlayer
is never invoked in this case).
  • Loading branch information
mewmew authored and AJenbo committed Nov 29, 2024
1 parent bbda8dd commit 4fad670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ void CreatePlayer(int pnum, char c)
plr[pnum]._pDamageMod = plr[pnum]._pStrength * plr[pnum]._pLevel / 100;
}

plr[pnum]._pBaseToBlk = ToBlkTbl[c];
plr[pnum]._pBaseToBlk = ToBlkTbl[c]; // BUGFIX: _pBaseToBlk not set in player struct if creating a New Game using an existing save file (since CreatePlayer is never invoked in this case).

plr[pnum]._pHitPoints = (plr[pnum]._pVitality + 10) << 6;
if (plr[pnum]._pClass == PC_WARRIOR
Expand Down

0 comments on commit 4fad670

Please sign in to comment.