mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-17 21:32:52 +00:00
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
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…
x
Reference in New Issue
Block a user