Commit 77f22d05 by MCMic

Building default player after PersonTypes are loaded to avoid segfault

1 parent 030eaac4
Pipeline #7122769 for 77f22d05 passed in 0 seconds
......@@ -602,6 +602,8 @@ void Game::InitGame()
Animation::loadAll();
PersonType::Load();
Person::players.emplace_back(new Person());
}
void Game::LoadScreenTexture()
......
......@@ -72,7 +72,7 @@ extern float envsoundlife[30];
extern XYZ windvector;
std::vector<std::shared_ptr<Person>> Person::players(1, std::shared_ptr<Person>(new Person()));
std::vector<std::shared_ptr<Person>> Person::players;
Person::Person()
: whichpatchx(0)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!