DEADSOFTWARE

Main: Fix trigger turret properties bug
authorStas'M <x86corez@gmail.com>
Tue, 22 May 2018 17:12:57 +0000 (20:12 +0300)
committerStas'M <x86corez@gmail.com>
Tue, 22 May 2018 17:13:34 +0000 (20:13 +0300)
src/editor/f_main.pas

index d543e3fdb5048e130d0def4a71730acb1db1ff47..e2635344a0977677c10d8bf4e71ec0a2470fcfb9 100644 (file)
@@ -1482,7 +1482,7 @@ begin
                   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;