Browse code

app_sqlang: proper jump in the exports array

Daniel-Constantin Mierla authored on 07/06/2017 09:19:27
Showing 1 changed files
... ...
@@ -1466,7 +1466,7 @@ SQInteger sqlang_open_KSR(HSQUIRRELVM J)
1466 1466
 	if(emods_size>1) {
1467 1467
 		for(k=1; k<emods_size; k++) {
1468 1468
 			n++;
1469
-			_sr_crt_J_KSRMethods += n;
1469
+			_sr_crt_J_KSRMethods = _sr_J_KSRMethods + n;
1470 1470
 			snprintf(mname, 128, "%s", emods[k].kexp[0].mname.s);
1471 1471
 			sq_pushstring(J, mname, -1);  /* stack[4] */
1472 1472
 			sq_newtable(J);  /* stack[5] */