Fix ChangeStatBoost using the wrong underlying function
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		| @@ -145,7 +145,7 @@ void RegisterPokemonClass::RegisterPokemonType(asIScriptEngine* engine) { | |||||||
|                                      asFUNCTION(GetMoves), asCALL_CDECL_OBJLAST); |                                      asFUNCTION(GetMoves), asCALL_CDECL_OBJLAST); | ||||||
|     assert(r >= 0); |     assert(r >= 0); | ||||||
|     r = engine->RegisterObjectMethod("Pokemon", "void ChangeStatBoost(Statistic stat, int8 amount)", |     r = engine->RegisterObjectMethod("Pokemon", "void ChangeStatBoost(Statistic stat, int8 amount)", | ||||||
|                                      asMETHOD(PkmnLib::Battling::Pokemon, GetDisplaySpecies), asCALL_THISCALL); |                                      asMETHOD(PkmnLib::Battling::Pokemon, ChangeStatBoost), asCALL_THISCALL); | ||||||
|     assert(r >= 0); |     assert(r >= 0); | ||||||
|     r = engine->RegisterObjectMethod("Pokemon", "const Species@ get_DisplaySpecies() const property", |     r = engine->RegisterObjectMethod("Pokemon", "const Species@ get_DisplaySpecies() const property", | ||||||
|                                      asMETHOD(PkmnLib::Battling::Pokemon, GetDisplaySpecies), asCALL_THISCALL); |                                      asMETHOD(PkmnLib::Battling::Pokemon, GetDisplaySpecies), asCALL_THISCALL); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user