fix dereferencing end iterator

exchange a and b in a && b
I wonder why it didn't show up until AI's changes though.
This commit is contained in:
anonymissimus 2013-12-20 21:31:41 +01:00
parent 26cc822ada
commit 6142f5a687

View file

@ -187,7 +187,7 @@ public:
iterator_type new_i(i_);
do{
++new_i;
}while ((new_i->second.unit == NULL) && (new_i != the_map().end() )) ;
}while ((new_i != the_map().end()) && (new_i->second.unit == NULL)) ;
dec();
i_ = new_i;
inc();