Skip to content

Commit

Permalink
Fix Can_Fire not properly checking for spawner weapons when the targe…
Browse files Browse the repository at this point in the history
…t is not a techno
  • Loading branch information
Rampastring committed Feb 16, 2025
1 parent 77f8a3e commit f88476e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/techno/technoext_hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ FireErrorType TechnoClassExt::_Can_Fire(TARGET target, WeaponSlotType which)
/**
* If the weapon is a spawner, it needs to have an object ready to spawn.
*/
if (techno && weapon && Extension::Fetch<WeaponTypeClassExtension>(weapon)->IsSpawner)
if (weapon && Extension::Fetch<WeaponTypeClassExtension>(weapon)->IsSpawner)
{
const auto techno_ext = Extension::Fetch<TechnoClassExtension>(this);

Expand Down

0 comments on commit f88476e

Please sign in to comment.