Skip to content

Commit

Permalink
hotfix: ref -> lvalue
Browse files Browse the repository at this point in the history
  • Loading branch information
ISPlatonov committed Jan 29, 2024
1 parent 6bb7cac commit 33775bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/Controls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ void Controls::handleFrameStep()
}
{
// draw border around object that curson is on
auto& mouse_pos = window.mapPixelToCoords(sf::Mouse::getPosition());
auto mouse_pos = window.mapPixelToCoords(sf::Mouse::getPosition());
for (const auto& iter : object_map.getObjectMap(Object::Passability::foreground))
{
if (iter.second.getSprite().getGlobalBounds().contains(mouse_pos))
Expand Down

0 comments on commit 33775bf

Please sign in to comment.