Browse Source

Fix Resurrect Crash (#5718)

pull/5720/head
Eric Robinson 3 years ago committed by GitHub
parent
commit
3642904a4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Source/spells.cpp

4
Source/spells.cpp

@ -293,12 +293,12 @@ void DoResurrect(size_t pnum, Player &target)
target._pMana = 0;
target._pManaBase = target._pMana + (target._pMaxManaBase - target._pMaxMana);
target._pmode = PM_STAND;
CalcPlrInv(target, true);
if (target.isOnActiveLevel()) {
StartStand(target, target._pdir);
} else {
target._pmode = PM_STAND;
}
}

Loading…
Cancel
Save