Skip to content

Commit

Permalink
Fix crashing in RicEntityHolyWaterFlame (Xeeynamo#1499)
Browse files Browse the repository at this point in the history
sp10 isn't large enough to do `i + 8`, tested ingame and seems to look
correct
  • Loading branch information
sozud authored Aug 11, 2024
1 parent 5fb1500 commit 20a3936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ric/2C4C4.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ void RicEntityHolyWaterFlame(Entity* self) {
}
prim->x0 = sp10[i] - 8;
prim->x1 = sp10[i] + 8;
prim->y0 = sp10[i + 8];
prim->y1 = sp10[i + 8];
prim->y0 = sp20[i];
prim->y1 = sp20[i];
prim->x2 = sp10[i + 1] - 8;
prim->x3 = sp10[i + 1] + 8;
prim->y2 = sp20[i + 1];
Expand Down

0 comments on commit 20a3936

Please sign in to comment.