diff --git a/src/PowderToyRenderer.cpp b/src/PowderToyRenderer.cpp index d7c35aed40..5e1af461d7 100644 --- a/src/PowderToyRenderer.cpp +++ b/src/PowderToyRenderer.cpp @@ -22,6 +22,8 @@ int main(int argc, char *argv[]) auto inputFilename = ByteString(argv[1]); auto outputFilename = ByteString(argv[2]) + ".png"; + auto simulationData = std::make_unique(); + std::vector fileData; if (!Platform::ReadFile(fileData, inputFilename)) { @@ -40,7 +42,6 @@ int main(int argc, char *argv[]) throw e; } - auto simulationData = std::make_unique(); Simulation * sim = new Simulation(); Renderer * ren = new Renderer(sim);