change assert to a warning
This commit is contained in:
parent
4deccbf3e8
commit
9f76d9000f
1 changed files with 4 additions and 1 deletions
|
@ -1987,7 +1987,10 @@ void unit::apply_modifications()
|
|||
|
||||
bool unit::invisible(const map_location& loc, bool see_all) const
|
||||
{
|
||||
assert(loc == get_location());
|
||||
if (loc != get_location()) {
|
||||
WRN_UT << "unit::invisible called: id = " << id() << " loc = " << loc << " get_loc = " << get_location() << std::endl;
|
||||
}
|
||||
|
||||
// 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