From 20c59e13e88da77bf2e231a4ad3c94f5d218ac0a Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 14 Mar 2022 16:16:07 -0400 Subject: .at() is slower than operator[] --- src/map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map.h b/src/map.h index d28b8d4..d35b632 100644 --- a/src/map.h +++ b/src/map.h @@ -110,7 +110,7 @@ public: inline const MapData& at(int x, int y) const { - return loaded_.at((x - left_) + width_ * (y - top_)); + return loaded_[(x - left_) + width_ * (y - top_)]; } inline MapData& at(int x, int y) -- cgit 1.4.1