From 3446412c0d93bb65edc7e3390d7006cc8a5fb7a8 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Mon, 17 Feb 2020 10:34:11 +0100 Subject: [PATCH] Fix EffectChance using uint16 instead of float. --- .../AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp index c94931a..6c7eb62 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp @@ -11,7 +11,7 @@ void RegisterBattleClass::RegisterBattleRandom(asIScriptEngine* engine) { [[maybe_unused]] int r = engine->RegisterObjectType("BattleRandom", 0, asOBJ_REF | asOBJ_NOCOUNT); assert(r >= 0); r = engine->RegisterObjectMethod("BattleRandom", - "bool EffectChance(int16 chance, ExecutingMove@ move, Pokemon@ target )", + "bool EffectChance(float chance, ExecutingMove@ move, Pokemon@ target )", asMETHOD(CreatureLib::Battling::BattleRandom, EffectChance), asCALL_THISCALL); assert(r >= 0); r = engine->RegisterObjectMethod("BattleRandom", "int Get()",