fixed frame overflow bug
authorMatthias Kramm <kramm@quiss.org>
Sat, 7 Mar 2009 20:00:27 +0000 (21:00 +0100)
committerMatthias Kramm <kramm@quiss.org>
Sat, 7 Mar 2009 20:00:27 +0000 (21:00 +0100)
lib/as3/scripts.c

index f965b2b..de5cd7c 100644 (file)
@@ -91,7 +91,7 @@ void swf_AddButtonLinks(SWF*swf, char stop_each_frame, char events)
             if(!f && (tag->id == ST_DEFINEBUTTON || tag->id == ST_DEFINEBUTTON2 || stop_each_frame)) {
                 /* make the contructor add a frame script */
                 __ findpropstrict(c,"[package]::addFrameScript");
-                __ pushbyte(c,frame);
+                __ pushuint(c,frame);
                 __ getlex(c,framename);
                 __ callpropvoid(c,"[package]::addFrameScript",2);