diff --git a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp index a8386a7..56a5f5d 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp @@ -28,6 +28,9 @@ void RegisterBattleClass::RegisterChoiceQueue(asIScriptEngine* engine) { r = engine->RegisterObjectMethod("ChoiceQueue", "const BaseTurnChoice@ Peek() const", asMETHOD(CreatureLib::Battling::ChoiceQueue, Peek), asCALL_THISCALL); Ensure(r >= 0); + r = engine->RegisterObjectMethod("ChoiceQueue", "bool HasNext() const", + asMETHOD(CreatureLib::Battling::ChoiceQueue, HasNext), asCALL_THISCALL); + Ensure(r >= 0); } void RegisterBattleClass::RegisterBattleRandom(asIScriptEngine* engine) {