Fixed invalid AngelScript declaration.
continuous-integration/drone/push Build is passing

This commit is contained in:
Deukhoofd committed 2020-02-22 16:14:20 +01:00
1 parent ed287f93db
commit 6a3df344da
2 files changed
+2 -2

No files matched your search

@@ -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);
}
@@ -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);
}