Maintenance: CSession 0x5620 companionTargetState[0xC] split into int m_homunHungerNotified (0x5620), int m_homunAttackRange (0x5624)
Batch #18678 by ragnarok-clanker: no function's compiled code changes; checked with 277 compiled unit(s), including every includer of Source/Client/Session/Session.h.
This commit is contained in:
parent
dcc8218012
commit
6c543574c3
12 changed files with 38 additions and 38 deletions
|
|
@ -4451,9 +4451,7 @@ bool UIWindowMgr::ProcessShortcutKey(int action) {
|
|||
if (g_session.mercenaryAlive != 0) {
|
||||
g_session.ResetMercenaryStats();
|
||||
if (CMode* mode = g_modeMgr.GetGameMode()) {
|
||||
std::uint32_t aid;
|
||||
std::memcpy(&aid, &g_session.companionTargetState[8], sizeof(aid));
|
||||
CGameActor* actor = static_cast<CGameActor*>(static_cast<CGameMode*>(mode)->scene->GetGameActorByAID(aid));
|
||||
CGameActor* actor = static_cast<CGameActor*>(static_cast<CGameMode*>(mode)->scene->GetGameActorByAID(g_session.m_mercenaryAid));
|
||||
if (actor && actor->HasActiveMercenaryAI()) {
|
||||
AiCommand command;
|
||||
command.type = 9;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue