diff --git a/CAPI/cpp/API/src/main.cpp b/CAPI/cpp/API/src/main.cpp index cf4c756..ee0ecb6 100644 --- a/CAPI/cpp/API/src/main.cpp +++ b/CAPI/cpp/API/src/main.cpp @@ -72,11 +72,15 @@ int THUAI6Main(int argc, char** argv, CreateAIFunc AIBuilder) try { THUAI6::PlayerType playerType; + THUAI6::StudentType stuType = THUAI6::StudentType::NullStudentType; if (pID == 4) playerType = THUAI6::PlayerType::TrickerPlayer; else + { playerType = THUAI6::PlayerType::StudentPlayer; - Logic logic(playerType, pID, trickerType, studentType[pID]); + stuType = studentType[pID]; + } + Logic logic(playerType, pID, trickerType, stuType); logic.Main(AIBuilder, sIP, sPort, file, print, warnOnly); } catch (const std::exception& e)