Fixed a crash in playerinfo level data when its missing from the DB.

Fixes #53
This commit is contained in:
hondacrx
2023-02-15 08:20:43 -05:00
parent d408bd2841
commit 1a01c02261
2 changed files with 7 additions and 9 deletions
+4 -1
View File
@@ -298,7 +298,10 @@ namespace Game.Entities
public PlayerInfo()
{
for (var i = 0; i < castSpells.Length; ++i)
castSpells[i] = new List<uint>();
castSpells[i] = new();
for (var i = 0; i < levelInfo.Length; ++i)
levelInfo[i] = new();
}
public struct CreatePosition