Fixed a crash in playerinfo level data when its missing from the DB.
Fixes #53
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user