mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-28 00:12:18 +00:00
rogueviz::fifteen:: fixed out of bounds array access
This commit is contained in:
parent
4934408703
commit
15d0e6e692
@ -93,9 +93,10 @@ void compute_triangle_markers() {
|
||||
|
||||
println(hlog, triangle_markers);
|
||||
|
||||
for(int i=0; i<isize(fif); i++) {
|
||||
for(int i=0; i<isize(fif)-1; i++) {
|
||||
turns.push_back(triangle_markers[i+1] == 0 ? 90._deg : 0);
|
||||
}
|
||||
turns.push_back(0);
|
||||
}
|
||||
|
||||
string dotted(int i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user