From a31477d4cb787ae81dce63cda23e48a3635570ef Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 16 Feb 2020 12:37:13 +0100 Subject: [PATCH] Fix HitData.Damage being float instead of uint on scripts. --- .../TypeRegistry/Battling/RegisterExecutingAttack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterExecutingAttack.cpp b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterExecutingAttack.cpp index be8fe15..3e32f95 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterExecutingAttack.cpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterExecutingAttack.cpp @@ -22,7 +22,7 @@ void RegisterExecutingAttack::RegisterHitData(asIScriptEngine* engine) { asMETHOD(CreatureLib::Battling::ExecutingAttack::HitData, GetEffectiveness), asCALL_THISCALL); assert(r >= 0); - r = engine->RegisterObjectMethod("HitData", "float get_Damage() const property", + r = engine->RegisterObjectMethod("HitData", "uint get_Damage() const property", asMETHOD(CreatureLib::Battling::ExecutingAttack::HitData, GetDamage), asCALL_THISCALL); assert(r >= 0);