Fixes HasType declaration in angelscript.
continuous-integration/drone/push Build is passing

This commit is contained in:
Deukhoofd committed 2021-11-20 11:08:51 +01:00
1 parent 4d1b3448ba
commit 62d7793944
1 file changed
+1 -1
@@ -157,7 +157,7 @@ void RegisterPokemonClass::RegisterPokemonType(asIScriptEngine* engine) {
r = engine->RegisterObjectMethod("Pokemon", "bool HasType(uint8 type) const",
asMETHOD(PkmnLib::Battling::Pokemon, HasType), asCALL_THISCALL);
Ensure(r >= 0);
r = engine->RegisterObjectMethod("Pokemon", "bool HasType(const constString& type) const",
r = engine->RegisterObjectMethod("Pokemon", "bool HasType(const constString &in type) const",
asFUNCTION(HasTypeStringWrapper), asCALL_CDECL_OBJFIRST);
Ensure(r >= 0);
r = engine->RegisterObjectMethod("Pokemon", "void Damage(uint32 type, DamageSource source)",