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:
parent
dd1b55f8c2
commit
41290b4498
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue