Skip to content

Commit 8c86ff0

Browse files
committed
Fix obscured StructArray error [skip ci]
1 parent a8a55ca commit 8c86ff0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Gadget.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ function read_gadget2_particle(f::Union{IOStream,Stream{format"Gadget2"}}, heade
285285
data = StructArray(Star(units))
286286
empty!(data)
287287
for k in 1:6
288-
append!(data, StructArray([Star(units, collection = GadgetTypes[k]) for i = 1:header.npart[k]]))
288+
append!(data, StructArray(Star(units, collection = GadgetTypes[k]) for i = 1:header.npart[k]))
289289
end
290290

291291
read_POS!(f, data, getuLength(units))

0 commit comments

Comments
 (0)