Skip to content

Commit 621120a

Browse files
authored
Merge pull request #385 from jgray-19/sbend_fix
Curved Kick Fixes
2 parents fed485c + cb1d1fa commit 621120a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mad_dynmap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ inline void bxbyh (const cflw<M> &m, const V &x, const V &y, T &bx, T &by)
210210
int k = -1;
211211
T btx, bty;
212212

213-
RFOR(i,m.snm) {
213+
RFOR(i,m.snm+1, 1) {
214214
btx = 0., bty = 0.;
215215

216216
RFOR(j,m.snm-i) { ++k;

src/madl_dynmap.mad

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ local function bxbyh (snm, bfx, bfy, x, y)
127127
bty = (bty + bfy[k]) * y
128128
end
129129

130-
bx = bx + btx + bfx[k+1]
131-
by = by + bty + bfy[k+1]
130+
bx = bx + (btx + bfx[k+1])
131+
by = by + (bty + bfy[k+1])
132132

133133
return bx, by
134134
end

0 commit comments

Comments
 (0)