From 5ea4d9d4c2f9c99fc5773a2ba91c470078368165 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 21 May 2022 17:04:39 +0200 Subject: Changed wrecks type to avoid copy --- View.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/View.cpp b/View.cpp index cf6ea9a..50e5549 100644 --- a/View.cpp +++ b/View.cpp @@ -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(); -- cgit v1.1