diff --git a/cpp/tiledmap.cc b/cpp/tiledmap.cc index b1d8dd1..112b62f 100644 --- a/cpp/tiledmap.cc +++ b/cpp/tiledmap.cc @@ -269,7 +269,7 @@ void TiledMap::Dump() } } -bool TiledMap::CalcCurrPos(std::list& path_points, int old_pos_x, int old_pos_y, int time_ms, int& curr_pos_x, int& curr_pos_y) +bool TiledMap::CalcCurrPos(std::vector& path_points, int old_pos_x, int old_pos_y, int time_ms, int& curr_pos_x, int& curr_pos_y) { if (path_points.size() < 2) { return false; diff --git a/cpp/tiledmap.h b/cpp/tiledmap.h index cd2bdfc..e72b054 100644 --- a/cpp/tiledmap.h +++ b/cpp/tiledmap.h @@ -68,7 +68,7 @@ class TiledMap bool HasStagePath(const std::string& path_name); std::vector SortGridList(std::vector* grid_list, StagePoint* sp); - bool CalcCurrPos(std::list& path_points, int old_pos_x, int old_pos_y, int time_ms, int& curr_pos_x, int& curr_pos_y); + bool CalcCurrPos(std::vector& path_points, int old_pos_x, int old_pos_y, int time_ms, int& curr_pos_x, int& curr_pos_y); private: std::map> layer_hash;