Skip to content
Snippets Groups Projects
Commit 3ae51977 authored by rswindell's avatar rswindell
Browse files

Bugfix: Baja integer manipulation functions (e.g. ADD,SUB,MUL,DIV,AND, etc.)

did not work if the second argument was a string variable.
parent 0fe84dc3
Branches
Tags
No related merge requests found
......@@ -653,9 +653,6 @@ int sbbs_t::exec_misc(csi_t* csi, char *path)
lp1=getintvar(csi,*(long *)csi->ip);
csi->ip+=4;
lp2=getintvar(csi,*(long *)csi->ip);
csi->ip+=4;
if(!lp1)
return(0);
if(!lp2) {
pp=getstrvar(csi,*(long *)csi->ip);
if(!pp || !*pp)
......@@ -663,6 +660,9 @@ int sbbs_t::exec_misc(csi_t* csi, char *path)
l=strtol(*pp,0,0); }
else
l=*lp2;
csi->ip+=4;
if(!lp1)
return(0);
switch(i) {
case ADD_INT_VARS:
*lp1+=l;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment