Browse Source

Fix metamethod _add for instances

mingodad 7 years ago
parent
commit
fce59250eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      SquiLu/squirrel/sqvm.cpp

+ 1 - 1
SquiLu/squirrel/sqvm.cpp

@@ -112,7 +112,7 @@ bool SQVM::ARITH_OP(SQUnsignedInteger op,SQObjectPtr &trg,const SQObjectPtr &o1,
 			trg = res; }
 			break;
 		default:
-			if(op == '+' &&	(tmask & _RT_STRING)){
+			if(op == '+' && (tmask & _RT_STRING) && !(tmask & _RT_INSTANCE)){
 				if(!StringCat(o1, o2, trg)) return false;
 			}
 			else if(!ArithMetaMethod(op,o1,o2,trg)) {