Attempt to patch the GameParty nullref

Not sure if this works, needs a more proper solution in the future
anyways
This commit is contained in:
Christopher F
2017-12-27 14:47:55 -05:00
parent 7b2ddd027c
commit 5ce85deb9d

View File

@@ -56,6 +56,8 @@
public static GameParty ToEntity(this API.GameParty model)
{
// todo: proper fix for this
if (model == null) return null;
// Discord will probably send bad data since they don't validate anything
int current = 0, cap = 0;
if (model.Size.Length == 2)