@@ -70,7 +70,15 @@ public class GameMapEdPopup : PopupWindowContent
int key = list.index;
Asset.RemoveMapAtIndex(list.index);
contentRect = new Rect(0f, 18f, popupSz.x - 20f, Mathf.Max(popupSz.y - 18, EditorGUIUtility.singleLineHeight * Asset.maps.Count + 5));
- OnMapSelected(key - 1);
+ if(key == 0)
+ {
+ OnMapSelected(0);
+ }
+ else
+ OnMapSelected(key - 1);
+
}