summary refs log tree commit diff stats
path: root/src/map.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-03-14 16:16:07 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2022-03-14 16:16:07 -0400
commit20c59e13e88da77bf2e231a4ad3c94f5d218ac0a (patch)
treec5a70568314beeae304ffc031bcc5fbe19dd88cc /src/map.h
parent7cd515fcfa1a5aac5605fcc63381033563fbf5d7 (diff)
downloadether-20c59e13e88da77bf2e231a4ad3c94f5d218ac0a.tar.gz
ether-20c59e13e88da77bf2e231a4ad3c94f5d218ac0a.tar.bz2
ether-20c59e13e88da77bf2e231a4ad3c94f5d218ac0a.zip
.at() is slower than operator[]
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h2
1 files changed, 1 insertions, 1 deletions
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:
110 110
111 inline const MapData& at(int x, int y) const 111 inline const MapData& at(int x, int y) const
112 { 112 {
113 return loaded_.at((x - left_) + width_ * (y - top_)); 113 return loaded_[(x - left_) + width_ * (y - top_)];
114 } 114 }
115 115
116 inline MapData& at(int x, int y) 116 inline MapData& at(int x, int y)