Skip to content

Commit

Permalink
Hack to address mingw warning. (#21286)
Browse files Browse the repository at this point in the history
This is a stab in the dark, I'm wondering if the compiler is attempting to unroll this loop and aliasing tmp to examp,
  • Loading branch information
kevingranade committed Jun 20, 2017
1 parent a63d7b1 commit 921cea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iexamine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,7 @@ void iexamine::fswitch(player &p, const tripoint &examp)
}
ter_id terid = g->m.ter(examp);
p.moves -= 100;
tripoint tmp = examp;
tripoint tmp;
for (tmp.y = examp.y; tmp.y <= examp.y + 5; tmp.y++ ) {
for (tmp.x = 0; tmp.x < SEEX * MAPSIZE; tmp.x++) {
if ( terid == t_switch_rg ) {
Expand Down

0 comments on commit 921cea0

Please sign in to comment.