Fixes for wrong C declarations
continuous-integration/drone/push Build is failing

This commit is contained in:
Deukhoofd committed 2020-05-02 16:19:24 +02:00
1 parent 3015133076
commit 91bd7f8670
2 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -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(); }
+3 -2
View File
@@ -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);
}