diff --git a/src/port/UserInterface/PythonExchangeModule.cpp b/src/port/UserInterface/PythonExchangeModule.cpp index e1ee23e3..7187dc88 100644 --- a/src/port/UserInterface/PythonExchangeModule.cpp +++ b/src/port/UserInterface/PythonExchangeModule.cpp @@ -14,12 +14,12 @@ PyObject * exchangeisTrading(PyObject * poSelf, PyObject * poArgs) PyObject * exchangeGetElkFromSelf(PyObject * poSelf, PyObject * poArgs) { - return Py_BuildValue("i", CPythonExchange::Instance().GetElkFromSelf()); + return PyLong_FromLongLong(CPythonExchange::Instance().GetElkFromSelf()); } PyObject * exchangeGetElkFromTarget(PyObject * poSelf, PyObject * poArgs) { - return Py_BuildValue("i", CPythonExchange::Instance().GetElkFromTarget()); + return PyLong_FromLongLong(CPythonExchange::Instance().GetElkFromTarget()); } PyObject * exchangeGetAcceptFromSelf(PyObject * poSelf, PyObject * poArgs) diff --git a/src/port/UserInterface/PythonGuild.cpp b/src/port/UserInterface/PythonGuild.cpp index 78f84eed..2ed293bd 100644 --- a/src/port/UserInterface/PythonGuild.cpp +++ b/src/port/UserInterface/PythonGuild.cpp @@ -435,7 +435,7 @@ PyObject * guildGetEnemyGuildName(PyObject * poSelf, PyObject * poArgs) PyObject * guildGetGuildMoney(PyObject * poSelf, PyObject * poArgs) { CPythonGuild::TGuildInfo & rGuildInfo = CPythonGuild::Instance().GetGuildInfoRef(); - return Py_BuildValue("i", rGuildInfo.dwGuildMoney); + return PyLong_FromLongLong(rGuildInfo.dwGuildMoney); } PyObject * guildGetGuildBoardCommentCount(PyObject * poSelf, PyObject * poArgs) diff --git a/src/port/UserInterface/PythonSafeBox.cpp b/src/port/UserInterface/PythonSafeBox.cpp index c29edbf8..bdf0906f 100644 --- a/src/port/UserInterface/PythonSafeBox.cpp +++ b/src/port/UserInterface/PythonSafeBox.cpp @@ -250,7 +250,7 @@ PyObject * safeboxGetItemAttribute(PyObject * poSelf, PyObject * poArgs) PyObject * safeboxGetMoney(PyObject * poSelf, PyObject * poArgs) { - return Py_BuildValue("i", CPythonSafeBox::Instance().GetMoney()); + return PyLong_FromLongLong(CPythonSafeBox::Instance().GetMoney()); } PyObject * safeboxGetMallItemID(PyObject * poSelf, PyObject * poArgs)