@@ -717,7 +717,7 @@ public class GameMapEditor : EditorWindow
{
if (currLayer<tile.spawnTime.Count && tile.spawnTime[currLayer].curLayer == asset.maps[mapIdx].layers[currLayer].name)
- tile.spawnTime.RemoveAt(mapIdx);
+ tile.spawnTime.RemoveAt(currLayer);
}