1
This commit is contained in:
parent
732a58ec91
commit
4d444476b3
@ -9,6 +9,7 @@
|
|||||||
#include "creature.h"
|
#include "creature.h"
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "bullet.h"
|
#include "bullet.h"
|
||||||
|
#include "app.h"
|
||||||
|
|
||||||
class HeroAbility
|
class HeroAbility
|
||||||
{
|
{
|
||||||
@ -399,5 +400,8 @@ void BattleDataContext::ForceInit(long long hero_uniid,
|
|||||||
|
|
||||||
void BattleDataContext::Init(Creature* c)
|
void BattleDataContext::Init(Creature* c)
|
||||||
{
|
{
|
||||||
|
owner_ = c->GetWeakPtrRef();
|
||||||
|
if (!hero_ability_->hero_uniid_) {
|
||||||
|
hero_ability_->hero_uniid_ = App::Instance()->AllocTempHeroUniId();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user