Fixed null pointer dereference...
...when redrawing a unit without any standing animation. (Fix for bug #15787.)
This commit is contained in:
parent
8966ad6b9c
commit
ab82611f26
1 changed files with 6 additions and 6 deletions
12
src/unit.cpp
12
src/unit.cpp
|
@ -1757,15 +1757,15 @@ void unit::redraw_unit()
|
|||
}
|
||||
return;
|
||||
}
|
||||
if(refreshing_) {
|
||||
return;
|
||||
|
||||
if (!anim_) {
|
||||
set_standing();
|
||||
if (!anim_) return;
|
||||
}
|
||||
|
||||
if (refreshing_) return;
|
||||
refreshing_ = true;
|
||||
|
||||
|
||||
if(!anim_) {
|
||||
set_standing();
|
||||
}
|
||||
anim_->update_last_draw_time();
|
||||
frame_parameters params;
|
||||
const t_translation::t_terrain terrain = map.get_terrain(loc_);
|
||||
|
|
Loading…
Add table
Reference in a new issue