add an assert to test a code assumption
This commit is contained in:
parent
ae58f715cd
commit
4deccbf3e8
1 changed files with 1 additions and 0 deletions
|
@ -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) )
|
||||
|
|
Loading…
Add table
Reference in a new issue