avm1: `bytesTotal` should actually get `bytesTotal`

This commit is contained in:
David Wendt 2024-01-10 21:15:12 -05:00 committed by kmeisthax
parent 092e20a1be
commit 14dec5dcce
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ fn get_bytes_total<'gc>(
_args: &[Value<'gc>],
) -> Result<Value<'gc>, Error<'gc>> {
if let NativeObject::NetStream(ns) = this.native() {
return Ok(ns.bytes_loaded().into());
return Ok(ns.bytes_total().into());
}
Ok(Value::Undefined)