Fix another bug in creating special encounters

This commit is contained in:
2025-08-24 19:14:59 -05:00
parent 80ffda130d
commit 7c2115e402

View File

@@ -2895,7 +2895,7 @@ void place_edit_special(location loc) {
is_new = true;
}
if(specials[i].spec < 0) {
if(edit_spec_enc(i, editing_town ? 2: 1, nullptr, is_new)) {
if(edit_spec_enc(get_current_area()->specials.size()-1, editing_town ? 2: 1, nullptr, is_new)) {
specials[i] = loc;
specials[i].spec = i;
undo_list.add(action_ptr(new aPlaceEraseSpecial("Place Special Encounter", true, specials[i])));