From 4b10219bcfd595f666b994e0b0a7b04811932683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20=C3=96hrling?= <jonoh749@student.liu.se> Date: Fri, 7 Dec 2018 14:26:04 +0100 Subject: [PATCH] Fixed invalid code in library.cpp that didn't reflect the changes made in other files. --- python-api-src/library.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python-api-src/library.cpp b/python-api-src/library.cpp index c868e9f..e8d5ff9 100644 --- a/python-api-src/library.cpp +++ b/python-api-src/library.cpp @@ -79,9 +79,9 @@ PYBIND11_MODULE(library, m) .def_property_readonly("current_supply", &IDABot::GetCurrentSupply, "How much supply we are currently using") .def_property_readonly("max_supply", &IDABot::GetMaxSupply, "How much supply we can currently use") .def_property_readonly("gas", &IDABot::GetGas, "How much gas we currently have") - .def("use_ability", &IDABot::CallUnitCommand, "Use an ability with the given unit") - .def("use_ability", &IDABot::CallUnitCommandWithPoint, "Use ability at point with the given unit") - .def("use_ability", &IDABot::CallUnitCommandWithTarget, "Use ability at target with the given unit"); + .def("use_ability", &IDABot::UseAbility, "Use an ability with the given unit") + .def("use_ability", &IDABot::UseAbilityWithPoint, "Use ability at point with the given unit") + .def("use_ability", &IDABot::UseAbilityWithTarget, "Use ability at target with the given unit"); py::class_<sc2::PlayerSetup>(m, "PlayerSetup"); -- GitLab