diff options
author | Aki <please@ignore.pl> | 2022-05-21 17:04:39 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-05-21 17:04:39 +0200 |
commit | 5ea4d9d4c2f9c99fc5773a2ba91c470078368165 (patch) | |
tree | 3bfacb8fedd20d35d0a042fe627246af77025161 | |
parent | ecf2f58b9d50c8cc6f29e76076888843e4fa4228 (diff) | |
download | derelict-5ea4d9d4c2f9c99fc5773a2ba91c470078368165.zip derelict-5ea4d9d4c2f9c99fc5773a2ba91c470078368165.tar.gz derelict-5ea4d9d4c2f9c99fc5773a2ba91c470078368165.tar.bz2 |
Changed wrecks type to avoid copy
-rw-r--r-- | View.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -49,7 +49,7 @@ View::update(const float dt) UpdateCamera(&m_camera); const int height = GetScreenHeight(); const int width = GetScreenWidth(); - const auto wrecks = m_grids.at(m_grid).wrecks; + const auto& wrecks = m_grids.at(m_grid).wrecks; m_labels.clear(); m_labels.reserve(wrecks.size()); const auto mouse = GetMousePosition(); |