From 56e3d0766985faadec8468e872c0237f115058f8 Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Sun, 18 Dec 2022 15:57:40 -0800 Subject: [PATCH] Fix overread in projectile behavior --- dGame/dBehaviors/ProjectileAttackBehavior.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/dGame/dBehaviors/ProjectileAttackBehavior.cpp b/dGame/dBehaviors/ProjectileAttackBehavior.cpp index c14f032d..c134db71 100644 --- a/dGame/dBehaviors/ProjectileAttackBehavior.cpp +++ b/dGame/dBehaviors/ProjectileAttackBehavior.cpp @@ -31,14 +31,6 @@ void ProjectileAttackBehavior::Handle(BehaviorContext* context, RakNet::BitStrea return; } - if (m_useMouseposit) { - NiPoint3 targetPosition = NiPoint3::ZERO; - if (!bitStream->Read(targetPosition)) { - Game::logger->Log("ProjectileAttackBehavior", "Unable to read targetPosition from bitStream, aborting Handle! %i", bitStream->GetNumberOfUnreadBits()); - return; - }; - } - auto* targetEntity = EntityManager::Instance()->GetEntity(target); for (auto i = 0u; i < this->m_projectileCount; ++i) {