Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Nov 14, 2024
1 parent 7a00d11 commit 8b5b36b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entitymanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ using json = nlohmann::json;

entitymanager::entitymanager()

Check warning on line 16 in src/entitymanager.cpp

View workflow job for this annotation

GitHub Actions / lint

src/entitymanager.cpp:16:1 [cppcoreguidelines-pro-type-member-init]

constructor does not initialize these fields: _space, _entities
: _space(cpSpaceNew(), &cpSpaceFree) {
const auto gravity = cpv(0, 19.8);
const auto gravity = cpv(0, 9.8);
cpSpaceSetGravity(_space.get(), gravity);
}

Expand Down

0 comments on commit 8b5b36b

Please sign in to comment.