diff --git a/src/editor/f_main.pas b/src/editor/f_main.pas
index a810a63637c87848381a1c051228b1cfd91a1f7c..e2635344a0977677c10d8bf4e71ec0a2470fcfb9 100644 (file)
--- a/src/editor/f_main.pas
+++ b/src/editor/f_main.pas
3: str := _lc[I_PROP_TR_SHOT_AIM_3];
else str := _lc[I_PROP_TR_SHOT_AIM_0];
end;
- with ItemProps[InsertRow(_lc[I_PROP_TR_SHOT_AIM], str, True)-1] do
+ with ItemProps[InsertRow(_lc[I_PROP_TR_SHOT_AIM], str, True)] do
begin
EditStyle := esPickList;
ReadOnly := True;
RemoveSelectFromObjects();
MainForm.miUndo.Enabled := UndoBuffer <> nil;
+ MainForm.RecountSelectedObjects();
end;
procedure Undo_Add(ObjectType: Byte; ID: DWORD; Group: Boolean = False);