Skip to content

Commit

Permalink
Fix misuse of BOOST_LIKELY.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Jul 31, 2018
1 parent 3c66cd7 commit 64e341c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ uint16_t Maps::getTileWalkable(df::coord t)
{
DFAI_ASSERT_VALID_TILE(t, "");
df::map_block *b = getTileBlock(t);
if (BOOST_LIKELY(b))
if (BOOST_LIKELY(b != nullptr))
return b->walkable[t.x & 0xf][t.y & 0xf];
return 0;
}
Expand Down

0 comments on commit 64e341c

Please sign in to comment.