Skip to content

Commit

Permalink
SerializedFile - fix typ - typeCount -> refTypesCount
Browse files Browse the repository at this point in the history
  • Loading branch information
K0lb3 committed Jun 23, 2023
1 parent 17afde7 commit e0359db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/files/serialzedfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ impl SerializedFile {
if header.m_Version >= SerializedFileFormatVersion::SUPPORTS_REF_OBJECT.bits() {
let refTypesCount = reader.read_i32::<B>()?;
let m_RefTypes: Option<Vec<SerializedType>> = Some(
(0..typeCount)
(0..refTypesCount)
.map(|_| {
SerializedType::from_reader::<T, B>(
reader,
Expand Down

0 comments on commit e0359db

Please sign in to comment.