Skip to content

Commit

Permalink
Fix read call
Browse files Browse the repository at this point in the history
  • Loading branch information
IntelOrca committed Jan 21, 2018
1 parent b6b9ee9 commit 4e7c48c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openloco/graphics/gfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace openloco::gfx
}

// Read element headers
if (!stream.read((char *)&_g1Elements, header.num_entries * sizeof(g1_element_t)))
if (!stream.read((char *)_g1Elements.get(), header.num_entries * sizeof(g1_element_t)))
{
throw std::runtime_error("Reading g1 element headers failed.");
}
Expand Down

0 comments on commit 4e7c48c

Please sign in to comment.