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

Fix; console.ansi() with the "current_attribute" argument (2nd arg) specified

never worked.
parent a6701887
No related branches found
No related tags found
No related merge requests found
......@@ -1350,7 +1350,7 @@ js_ansi(JSContext *cx, uintN argc, jsval *arglist)
int32 curattr=0;
char buf[16];
if(!JS_ValueToInt32(cx,argv[0],&curattr))
if(!JS_ValueToInt32(cx,argv[1],&curattr))
return JS_FALSE;
if((js_str=JS_NewStringCopyZ(cx,sbbs->ansi(attr,curattr,buf)))==NULL)
return(JS_FALSE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment