Fixes for wrong C declarations
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
3015133076
commit
91bd7f8670
|
@ -1,4 +1,4 @@
|
|||
#include "Core.hpp"
|
||||
|
||||
std::string ExceptionHandler::_lastException = "";
|
||||
export const char* PkmnLib_GetLastException() { return ExceptionHandler::GetLastException(); }
|
||||
export const char* PkmnLib_C_GetLastException() { return ExceptionHandler::GetLastException(); }
|
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue