Fix another bug in creating special encounters

This commit is contained in:
2025-08-24 19:14:59 -05:00
committed by Celtic Minstrel
parent 05117507e2
commit 148c90dd20

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])));