removed use of auto_ptr to help with compilation on older compilers
This commit is contained in:
parent
964c3bc5fd
commit
0bc7078b00
1 changed files with 2 additions and 1 deletions
|
@ -23,6 +23,7 @@
|
|||
#include "playturn.hpp"
|
||||
#include "preferences.hpp"
|
||||
#include "replay.hpp"
|
||||
#include "scoped_resource.hpp"
|
||||
#include "sound.hpp"
|
||||
#include "tooltips.hpp"
|
||||
|
||||
|
@ -402,7 +403,7 @@ redo_turn:
|
|||
update_locker lock(gui,!preferences::show_ai_moves());
|
||||
|
||||
ai_interface::info ai_info(gui,map,gameinfo,units,teams,player_number,status);
|
||||
std::auto_ptr<ai_interface> ai_obj(create_ai("",ai_info));
|
||||
util::scoped_ptr<ai_interface> ai_obj(create_ai("",ai_info));
|
||||
ai_obj->play_turn();
|
||||
|
||||
if(network::nconnections() > 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue