bevy_crevice: Fix incorrect iterator usage in WriteStd430 impl for [T] (#3591)

# Objective

- Fix incorrect iterator usage in WriteStd430 impl for [T]
  - The first item was being written twice. This is correct in the WriteStd140 impl for [T].

## Solution

- See the code.
This commit is contained in:
Robert Swain 2022-01-15 20:10:33 +00:00 committed by Carter Anderson
parent 470f94d19e
commit b9337debb9

View file

@ -268,7 +268,7 @@ where
offset = item.write_std430(writer)?;
}
for item in self.iter() {
for item in iter {
item.write_std430(writer)?;
}