diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs index 44a7c14..181399d 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs | |||
@@ -368,7 +368,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins | |||
368 | 368 | ||
369 | Vector3 ZeroVector = new Vector3(0, 0, 0); | 369 | Vector3 ZeroVector = new Vector3(0, 0, 0); |
370 | 370 | ||
371 | bool nameSearch = (ts.name != null && ts.name != ""); | 371 | bool nameSearch = !string.IsNullOrEmpty(ts.name); |
372 | 372 | ||
373 | foreach (EntityBase ent in Entities) | 373 | foreach (EntityBase ent in Entities) |
374 | { | 374 | { |
@@ -608,7 +608,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins | |||
608 | return sensedEntities; | 608 | return sensedEntities; |
609 | senseEntity(sp); | 609 | senseEntity(sp); |
610 | } | 610 | } |
611 | else if (ts.name != null && ts.name != "") | 611 | else if (!string.IsNullOrEmpty(ts.name)) |
612 | { | 612 | { |
613 | ScenePresence sp; | 613 | ScenePresence sp; |
614 | // Try lookup by name will return if/when found | 614 | // Try lookup by name will return if/when found |