fixme: re-init TileSet when count is zero..

This commit is contained in:
Hannes Janetzek 2014-04-20 00:23:14 +02:00
parent 5cac7894c3
commit 24c8b4c16f

View File

@ -186,7 +186,7 @@ public class TileManager {
public boolean update(MapPosition pos) {
// FIXME cant expect init to be called otherwise
if (mNewTiles == null)
if (mNewTiles == null || mNewTiles.tiles.length == 0)
init();
/* clear JobQueue and set tiles to state == NONE.