File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3342,7 +3342,7 @@ SENSOR_STATS *objActiveRadar(BASE_OBJECT *psObj)
3342
3342
break ;
3343
3343
case OBJ_STRUCTURE :
3344
3344
psStats = ((STRUCTURE * )psObj )-> pStructureType -> pSensor ;
3345
- if (psStats == NULL || psStats -> location != LOC_TURRET )
3345
+ if (psStats == NULL || psStats -> location != LOC_TURRET || (( STRUCTURE * ) psObj ) -> status != SS_BUILT )
3346
3346
{
3347
3347
return NULL ;
3348
3348
}
@@ -3359,7 +3359,7 @@ bool objRadarDetector(BASE_OBJECT *psObj)
3359
3359
{
3360
3360
STRUCTURE * psStruct = (STRUCTURE * )psObj ;
3361
3361
3362
- return (psStruct -> pStructureType -> pSensor && psStruct -> pStructureType -> pSensor -> type == RADAR_DETECTOR_SENSOR );
3362
+ return (psStruct -> status == SS_BUILT && psStruct -> pStructureType -> pSensor && psStruct -> pStructureType -> pSensor -> type == RADAR_DETECTOR_SENSOR );
3363
3363
}
3364
3364
else if (psObj -> type == OBJ_DROID )
3365
3365
{
You can’t perform that action at this time.
0 commit comments