1
Fork 0
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:
Maru 2017-10-04 22:04:42 -03:00
parent 76e8a113cc
commit 989939cf51

View file

@ -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;
}