Fix HitData.Damage being float instead of uint on scripts.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-02-16 12:37:13 +01:00
parent 3a141e7f9d
commit a31477d4cb
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ void RegisterExecutingAttack::RegisterHitData(asIScriptEngine* engine) {
asMETHOD(CreatureLib::Battling::ExecutingAttack::HitData, GetEffectiveness), asMETHOD(CreatureLib::Battling::ExecutingAttack::HitData, GetEffectiveness),
asCALL_THISCALL); asCALL_THISCALL);
assert(r >= 0); 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), asMETHOD(CreatureLib::Battling::ExecutingAttack::HitData, GetDamage),
asCALL_THISCALL); asCALL_THISCALL);
assert(r >= 0); assert(r >= 0);