src/ai/api/ai_station.cpp
branchnoai
changeset 9723 eee46cb39750
parent 9696 4384ed3de1f0
child 9724 b39bc69bb2f2
equal deleted inserted replaced
9722:ebf0ece7d8f6 9723:eee46cb39750
     6 #include "ai_cargo.hpp"
     6 #include "ai_cargo.hpp"
     7 #include "../../debug.h"
     7 #include "../../debug.h"
     8 #include "../../station.h"
     8 #include "../../station.h"
     9 #include "../../station_map.h"
     9 #include "../../station_map.h"
    10 #include "../../variables.h"
    10 #include "../../variables.h"
    11 #include "../../strings.h"
    11 #include "../../strings_func.h"
       
    12 #include "../../core/alloc_func.hpp"
    12 #include "table/strings.h"
    13 #include "table/strings.h"
    13 
    14 
    14 /* static */ bool AIStation::IsValidStation(StationID station_id)
    15 /* static */ bool AIStation::IsValidStation(StationID station_id)
    15 {
    16 {
    16 	return ::IsValidStationID(station_id) && ::GetStation(station_id)->owner == _current_player;
    17 	return ::IsValidStationID(station_id) && ::GetStation(station_id)->owner == _current_player;