From 40f3b24bed8e61e0c8085741ccabc7b19084580a Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 16 Feb 2020 17:57:51 +0100 Subject: [PATCH] Change battle.Random from address to handle.. --- .../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 81c4b37..c94931a 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/Battling/RegisterBattleClass.cpp @@ -40,7 +40,7 @@ void RegisterBattleClass::RegisterBattle(asIScriptEngine* engine) { r = engine->RegisterObjectMethod("Battle", "bool get_CanFlee() const property", asMETHOD(CreatureLib::Battling::Battle, CanFlee), asCALL_THISCALL); assert(r >= 0); - r = engine->RegisterObjectMethod("Battle", "BattleRandom& get_Random() const property", + r = engine->RegisterObjectMethod("Battle", "BattleRandom@ get_Random() const property", asMETHOD(CreatureLib::Battling::Battle, GetRandom), asCALL_THISCALL); assert(r >= 0); }