diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index e7d00e1..68804a1 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -13055,8 +13055,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
13055 | 13055 | ||
13056 | for (int i = 0; i < commandList.Data.Length; i++) | 13056 | for (int i = 0; i < commandList.Data.Length; i++) |
13057 | { | 13057 | { |
13058 | int cmd = (LSL_Integer)commandList.Data[i]; // Yengine cast issue | 13058 | int cmd; |
13059 | if(commandList.Data[i] is LSL_Integer) | ||
13060 | cmd = (LSL_Integer)commandList.Data[i]; | ||
13061 | else | ||
13062 | cmd = (int)commandList.Data[i]; | ||
13063 | |||
13059 | ParcelMediaCommandEnum command = (ParcelMediaCommandEnum)cmd; | 13064 | ParcelMediaCommandEnum command = (ParcelMediaCommandEnum)cmd; |
13065 | |||
13060 | switch (command) | 13066 | switch (command) |
13061 | { | 13067 | { |
13062 | case ParcelMediaCommandEnum.Agent: | 13068 | case ParcelMediaCommandEnum.Agent: |