diff options
author | UbitUmarov | 2017-05-27 05:41:40 +0100 |
---|---|---|
committer | UbitUmarov | 2017-05-27 05:41:40 +0100 |
commit | 289d4ca128d278aed49044b92411234d5f57b781 (patch) | |
tree | b9a10c96569d51102218e041fc3a018643fd230f /OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |
parent | lose a ref (diff) | |
download | opensim-SC-289d4ca128d278aed49044b92411234d5f57b781.zip opensim-SC-289d4ca128d278aed49044b92411234d5f57b781.tar.gz opensim-SC-289d4ca128d278aed49044b92411234d5f57b781.tar.bz2 opensim-SC-289d4ca128d278aed49044b92411234d5f57b781.tar.xz |
minor cleanup
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine/XEngine.cs')
-rwxr-xr-x | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index c1abba2..870957b 100755 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -2149,10 +2149,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
2149 | string fn = Path.GetFileName(assemName); | 2149 | string fn = Path.GetFileName(assemName); |
2150 | 2150 | ||
2151 | string assem = String.Empty; | 2151 | string assem = String.Empty; |
2152 | string assemNameText = assemName + ".text"; | ||
2152 | 2153 | ||
2153 | if (File.Exists(assemName + ".text")) | 2154 | if (File.Exists(assemNameText)) |
2154 | { | 2155 | { |
2155 | FileInfo tfi = new FileInfo(assemName + ".text"); | 2156 | FileInfo tfi = new FileInfo(assemNameText); |
2156 | 2157 | ||
2157 | if (tfi != null) | 2158 | if (tfi != null) |
2158 | { | 2159 | { |
@@ -2160,7 +2161,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
2160 | 2161 | ||
2161 | try | 2162 | try |
2162 | { | 2163 | { |
2163 | using (FileStream tfs = File.Open(assemName + ".text", | 2164 | using (FileStream tfs = File.Open(assemNameText, |
2164 | FileMode.Open, FileAccess.Read)) | 2165 | FileMode.Open, FileAccess.Read)) |
2165 | { | 2166 | { |
2166 | tfs.Read(tdata, 0, tdata.Length); | 2167 | tfs.Read(tdata, 0, tdata.Length); |