diff --git a/sc2/src/sc2code/cyborg.c b/sc2/src/sc2code/cyborg.c index 02e42859d..a6abf764c 100644 --- a/sc2/src/sc2code/cyborg.c +++ b/sc2/src/sc2code/cyborg.c @@ -378,7 +378,7 @@ ship_weapons (ELEMENTPTR ShipPtr, ELEMENTPTR OtherPtr, COUNT w = *WeaponPtr; if (w) { - EPtr = LockElement (w, &EPtr); + LockElement (w, &EPtr); if (EPtr->state_flags & APPEARING) { EPtr->next = EPtr->current; diff --git a/sc2/src/sc2code/ship.c b/sc2/src/sc2code/ship.c index 68a9135a9..fe7ecd15a 100644 --- a/sc2/src/sc2code/ship.c +++ b/sc2/src/sc2code/ship.c @@ -311,7 +311,7 @@ ship_postprocess (PELEMENT ElementPtr) { ELEMENTPTR EPtr; - EPtr = LockElement (w, &EPtr); + LockElement (w, &EPtr); SetElementStarShip (EPtr, StarShipPtr); if (!played_sfx) {