Skip to content

Commit

Permalink
fix crash when selecting timed_events
Browse files Browse the repository at this point in the history
  • Loading branch information
KorGgenT committed Nov 21, 2019
1 parent 8ca74bc commit 821386f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spell_form.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ void update_effect_str( string effect )
effect_combobox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
} else if( effect == "timed_event" )
{
effect_str_combobox.SelectedIndex = 0;
effect_str_combobox.Items.AddRange(spell.allowed_strings.timed_event);
effect_str_combobox.SelectedIndex = 0;
effect_str_combobox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
} else if( effect == "pain_split" || effect == "teleport_random" || effect == "vomit" || effect == "explosion" ||
effect == "flashbang" || effect == "mod_moves" || effect == "map" || effect == "bash" || effect == "charm_monster" )
Expand Down

0 comments on commit 821386f

Please sign in to comment.