From f521737b26be90e4b5aca1009f6ce4701ee4a49d Mon Sep 17 00:00:00 2001 From: vfjpl Date: Mon, 23 Nov 2020 17:26:15 +0100 Subject: [PATCH] Return Tile walking creatures and things by const ref instead of copy (#1117) --- src/client/tile.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/tile.h b/src/client/tile.h index 8c91ec6c..72f70a7a 100644 --- a/src/client/tile.h +++ b/src/client/tile.h @@ -88,8 +88,8 @@ public: int getDrawElevation() { return m_drawElevation; } std::vector getItems(); std::vector getCreatures(); - std::vector getWalkingCreatures() { return m_walkingCreatures; } - std::vector getThings() { return m_things; } + const std::vector& getWalkingCreatures() { return m_walkingCreatures; } + const std::vector& getThings() { return m_things; } ItemPtr getGround(); int getGroundSpeed(); uint8 getMinimapColorByte();