aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/lscript/lscript_execute/lscript_execute.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/lscript/lscript_execute/lscript_execute.cpp')
-rw-r--r--linden/indra/lscript/lscript_execute/lscript_execute.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/linden/indra/lscript/lscript_execute/lscript_execute.cpp b/linden/indra/lscript/lscript_execute/lscript_execute.cpp
index cb9a78e..7da5e51 100644
--- a/linden/indra/lscript/lscript_execute/lscript_execute.cpp
+++ b/linden/indra/lscript/lscript_execute/lscript_execute.cpp
@@ -809,16 +809,7 @@ void LLScriptExecute::runInstructions(BOOL b_print, const LLUUID &id,
809 // is there a fault? 809 // is there a fault?
810 // if yes, print out message and exit 810 // if yes, print out message and exit
811 S32 value = getVersion(); 811 S32 value = getVersion();
812 S32 major_version = 0; 812 if ((value != LSL2_VERSION1_END_NUMBER) && (value != LSL2_VERSION_NUMBER))
813 if (value == LSL2_VERSION1_END_NUMBER)
814 {
815 major_version = 1;
816 }
817 else if (value == LSL2_VERSION_NUMBER)
818 {
819 major_version = 2;
820 }
821 else
822 { 813 {
823 setFault(LSRF_VERSION_MISMATCH); 814 setFault(LSRF_VERSION_MISMATCH);
824 } 815 }