Skip to content

Commit

Permalink
multistruct: Improve sanity checks
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Nov 13, 2024
1 parent ed6c845 commit 4492b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multistruct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ bool recvLasSat(NETQUEUE queue)
return false;
}

if (psStruct && psObj && psStruct->pStructureType->psWeapStat[0]->weaponSubClass == WSC_LAS_SAT)
if (psStruct && psObj && isLasSat(psStruct->pStructureType))
{
// Lassats have just one weapon
unsigned firePause = weaponFirePause(*psStruct->getWeaponStats(0), player);
Expand Down

0 comments on commit 4492b11

Please sign in to comment.