mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-09 04:07:46 +00:00
Fix crash when spamming cast action and cast interrupt (esc) while walking (null deref);
This commit is contained in:
parent
76e8a113cc
commit
989939cf51
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ void Core::Network::GameConnection::actionHandler( const Packets::GamePacket& in
|
|||
}
|
||||
case 0x69: // Cancel cast
|
||||
{
|
||||
if( pPlayer->checkAction() )
|
||||
if( pPlayer->getCurrentAction() != nullptr )
|
||||
pPlayer->getCurrentAction()->setInterrupted();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue