Fixed contravariance of last turn number...

...with respect to current turn number, so that the current turn never
goes past the end.
This commit is contained in:
Guillaume Melquiond 2010-07-22 19:26:05 +00:00
parent dd1b55f8c2
commit 41290b4498

View file

@ -299,7 +299,7 @@ void tod_manager::set_turn(unsigned int num)
set_time_of_day(current_time);
if(static_cast<int>(num) > num_turns_ && num_turns_ != -1) {
this->add_turns(num_turns_ - num);
add_turns(num - num_turns_);
}
turn_ = num;