Browse Source

Correct monster light when loading old saves

pull/992/head
Anders Jenbo 5 years ago
parent
commit
b69952d918
  1. BIN
      OptimizationProfiles/DevilutionX.profdata
  2. 2
      Source/loadsave.cpp

BIN
OptimizationProfiles/DevilutionX.profdata

Binary file not shown.

2
Source/loadsave.cpp

@ -503,6 +503,8 @@ static void LoadMonster(int i)
CopyChar(tbuff, &pMonster->leaderflag);
CopyChar(tbuff, &pMonster->packsize);
CopyChar(tbuff, &pMonster->mlid);
if (pMonster->mlid == plr[myplr]._plid)
pMonster->mlid = NO_LIGHT; // Correct incorect values in old saves
// Omit pointer mName;
// Omit pointer MType;

Loading…
Cancel
Save