diff options
Diffstat (limited to 'src/main/input-output/deal_parser.cpp')
| -rw-r--r-- | src/main/input-output/deal_parser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/input-output/deal_parser.cpp b/src/main/input-output/deal_parser.cpp index c876e91..8637649 100644 --- a/src/main/input-output/deal_parser.cpp +++ b/src/main/input-output/deal_parser.cpp @@ -4,7 +4,7 @@ #include "deal_parser.h" #include "../game/game_state.h" -#include "../util/util.h" +#include "json_helper.h" using namespace std; using namespace rapidjson; @@ -35,7 +35,7 @@ void deal_parser::parse_tableau_piles(game_state &gs, const rapidjson::Document& assert(json_tab_piles.IsArray()); if (gs.tableau_piles.size() != gs.rules.tableau_pile_count) { - util::json_parse_err("Incorrect number of tableau piles"); + json_helper::json_parse_err("Incorrect number of tableau piles"); } for (auto p = std::make_pair(begin(json_tab_piles.GetArray()), begin(gs.tableau_piles)); @@ -67,7 +67,7 @@ void deal_parser::parse_cells(game_state &gs, const Document& doc) { if (json_cell_arr.Empty()) return; else if (gs.rules.cells != json_cell_arr.Size()) { - util::json_parse_err("Incorrect number of cells"); + json_helper::json_parse_err("Incorrect number of cells"); } for (auto p = std::make_pair(begin(json_cell_arr), begin(gs.cells)); |
