<BUG>int selIndex = ids.indexOf(ModelManager.getBattlefield().getMap().mapStyleID);</BUG><CONTEXT>List<MapStyleBuilder> builders = BuilderManager.getAllMapStyleBuilders();List<String> ids = new ArrayList<>();for (MapStyleBuilder b : builders) {ids.add(b.getId());}<extra_id_0>fillDropDown(DROPDOWN_STYLE_ID, ids, selIndex);}private void drawPencilPanel() {</CONTEXT>
int selIndex = ids.indexOf(ModelManager.getBattlefield().getMap().getMapStyleID());