Style fixes.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2021-03-26 19:14:22 +01:00
parent 47097cb9fc
commit 41475fcb2f
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
3 changed files with 5 additions and 6 deletions

View File

@ -1,7 +1,8 @@
#include "AngelScriptItemUseScript.hpp"
#include "AngelScriptResolver.hpp"
CScriptArray* AngelScriptItemUseScript::GetEffectParameters(const ArbUt::List<CreatureLib::Library::EffectParameter*>& ls) {
CScriptArray*
AngelScriptItemUseScript::GetEffectParameters(const ArbUt::List<CreatureLib::Library::EffectParameter*>& ls) {
asITypeInfo* t = _resolver->GetBaseType("array<EffectParameter@>"_cnc);
CScriptArray* arr = CScriptArray::Create(t, ls.Count());
for (size_t i = 0; i < ls.Count(); i++) {
@ -10,8 +11,7 @@ CScriptArray* AngelScriptItemUseScript::GetEffectParameters(const ArbUt::List<Cr
return arr;
}
void AngelScriptItemUseScript::OnInitialize(
const ArbUt::List<CreatureLib::Library::EffectParameter*>& parameters) {
void AngelScriptItemUseScript::OnInitialize(const ArbUt::List<CreatureLib::Library::EffectParameter*>& parameters) {
if (__OnInitialize.Exists) {
CScriptArray* arr = nullptr;
AngelScriptUtils::AngelscriptFunctionCall(

View File

@ -60,5 +60,4 @@ shared abstract class ItemUseScript {
}
)");
Ensure(r >= 0);
}