mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-16 10:20:30 +00:00
fixed a segfault in mthe handling of [modify_ai] tag during replay.
This is a temporary but safe fix.
This commit is contained in:
parent
40eec9194f
commit
688e39d5de
@ -655,6 +655,10 @@ void manager::modify_active_ai_config_old_for_side ( side_number side, const con
|
||||
|
||||
void manager::modify_active_ai_for_side ( side_number side, const config &cfg )
|
||||
{
|
||||
if (ai_info_==NULL) {
|
||||
//replay ?
|
||||
return;
|
||||
}
|
||||
get_active_ai_holder_for_side(side).modify_ai(cfg);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user