Change battle.Random from address to handle..
continuous-integration/drone/push Build is passing

This commit is contained in:
Deukhoofd committed 2020-02-16 17:57:51 +01:00
1 parent 30c3c5f405
commit 40f3b24bed
1 file changed
+1 -1
@@ -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);
}