diff --git a/CInterface/Core.cpp b/CInterface/Core.cpp index 0145855..b8aaaa8 100644 --- a/CInterface/Core.cpp +++ b/CInterface/Core.cpp @@ -1,4 +1,4 @@ #include "Core.hpp" std::string ExceptionHandler::_lastException = ""; -export const char* PkmnLib_GetLastException() { return ExceptionHandler::GetLastException(); } \ No newline at end of file +export const char* PkmnLib_C_GetLastException() { return ExceptionHandler::GetLastException(); } \ No newline at end of file diff --git a/CInterface/Library/Nature.cpp b/CInterface/Library/Nature.cpp index 81687e2..2f64ed3 100644 --- a/CInterface/Library/Nature.cpp +++ b/CInterface/Library/Nature.cpp @@ -19,6 +19,7 @@ SIMPLE_GET_FUNC(Nature, GetDecreasedStat, CreatureLib::Library::Statistic) #undef SIMPLE_GET_FUNC -export float PkmnLib_Nature_GetStatModifier(PkmnLib::Library::Nature nature, CreatureLib::Library::Statistic stat) { - return nature.GetStatModifier(stat); +export float PkmnLib_Nature_GetStatModifier(const PkmnLib::Library::Nature* nature, + CreatureLib::Library::Statistic stat) { + return nature->GetStatModifier(stat); } \ No newline at end of file