Don't destructively modify the array given us by usercode.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@469 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -915,9 +915,7 @@ public class GameControlBackend
|
||||
protected function toTypedIntArray (array :Array) :TypedArray
|
||||
{
|
||||
var tarray :TypedArray = TypedArray.create(int);
|
||||
while (array.length > 0) {
|
||||
tarray.push(int(array.shift()));
|
||||
}
|
||||
tarray.addAll(array);
|
||||
return tarray;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user