Fixed invalid AngelScript declaration.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-02-22 16:14:20 +01:00
parent ed287f93db
commit 6a3df344da
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ void RegisterBattleClass::RegisterBattle(asIScriptEngine* engine) {
asMETHOD(CreatureLib::Battling::Battle, GetCurrentTurnQueue), asCALL_THISCALL);
assert(r >= 0);
r = engine->RegisterObjectMethod(
"Battle", "void AddVolatile(const string &in name) const property",
"Battle", "void AddVolatile(const string &in name) const",
asMETHODPR(CreatureLib::Battling::Battle, AddVolatileScript, (const std::string&), void), asCALL_THISCALL);
assert(r >= 0);
}

View File

@@ -176,7 +176,7 @@ void RegisterPokemonClass::RegisterPokemonType(asIScriptEngine* engine) {
asMETHOD(PkmnLib::Battling::Pokemon, GetStatBoost), asCALL_THISCALL);
assert(r >= 0);
r = engine->RegisterObjectMethod(
"Pokemon", "void AddVolatile(const string &in name) const property",
"Pokemon", "void AddVolatile(const string &in name) const",
asMETHODPR(PkmnLib::Battling::Pokemon, AddVolatileScript, (const std::string&), void), asCALL_THISCALL);
assert(r >= 0);
}