Skip to content

Commit

Permalink
Fixed entityloader prematurely creating an instance when commiting en…
Browse files Browse the repository at this point in the history
…tities.
  • Loading branch information
fLindahl committed Nov 6, 2024
1 parent 8c8bdce commit cef7d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolkit/editor/editor/entityloader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ EntityLoader::CommitEntity(Editor::Entity editorEntity)
Editable& editable = Editor::state.editables[editorEntity.index];
Game::World* gameWorld = Game::GetWorld(WORLD_DEFAULT);

Game::Entity gameEntity = gameWorld->CreateEntity();
Game::Entity gameEntity = gameWorld->AllocateEntity();

editable.gameEntity = gameEntity;
editable.version++;
Expand Down

0 comments on commit cef7d7a

Please sign in to comment.