fixed npe in kit npc creation

This commit is contained in:
Cheese 2015-10-31 19:55:58 +11:00
parent b8b260bca1
commit 92a2c2ebaa

View File

@ -563,9 +563,9 @@ public class GameLobbyManager implements Listener, IPacketHandler
double space = 4;
double offset = (divide-1)*space/2d;
for (int i=0 ; i<divide ; i++)
for (int i=0 ; i<kits.size()-divide ; i++)
{
Kit kit = kits.get(i + (divide+1));
Kit kit = kits.get(i + divide);
if (kit.GetAvailability() == KitAvailability.Null)
continue;