add an assert to test a code assumption

This commit is contained in:
Chris Beck 2014-07-02 14:46:29 -04:00
parent ae58f715cd
commit 4deccbf3e8

View file

@ -1987,6 +1987,7 @@ void unit::apply_modifications()
bool unit::invisible(const map_location& loc, bool see_all) const
{
assert(loc == get_location());
// This is a quick condition to check, and it does not depend on the
// location (so might as well bypass the location-based cache).
if ( get_state(STATE_UNCOVERED) )