]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix div0's bug
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 18 Aug 2009 23:40:33 +0000 (23:40 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 18 Aug 2009 23:40:33 +0000 (23:40 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9122 d7cf8633-e32d-0410-b094-e92efae38249

prvm_execprogram.h

index 41f722f061ac0c5b39c62fa4e99a826d4058130c..86596615c509f6269836acf8c6eb83dd192d88dd 100644 (file)
@@ -40,6 +40,8 @@
                                OPC->vector[0] = OPA->_float * OPB->vector[0];
                                OPC->vector[1] = OPA->_float * OPB->vector[1];
                                OPC->vector[2] = OPA->_float * OPB->vector[2];
+                               break;
+                       case OP_MUL_VF:
                                OPC->vector[0] = OPB->_float * OPA->vector[0];
                                OPC->vector[1] = OPB->_float * OPA->vector[1];
                                OPC->vector[2] = OPB->_float * OPA->vector[2];