Change battle.Random from address to handle..
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
30c3c5f405
commit
40f3b24bed
|
@ -40,7 +40,7 @@ void RegisterBattleClass::RegisterBattle(asIScriptEngine* engine) {
|
||||||
r = engine->RegisterObjectMethod("Battle", "bool get_CanFlee() const property",
|
r = engine->RegisterObjectMethod("Battle", "bool get_CanFlee() const property",
|
||||||
asMETHOD(CreatureLib::Battling::Battle, CanFlee), asCALL_THISCALL);
|
asMETHOD(CreatureLib::Battling::Battle, CanFlee), asCALL_THISCALL);
|
||||||
assert(r >= 0);
|
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);
|
asMETHOD(CreatureLib::Battling::Battle, GetRandom), asCALL_THISCALL);
|
||||||
assert(r >= 0);
|
assert(r >= 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue