aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorŠtefan Lazový <Sovak@users.noreply.github.com>2017-10-07 22:48:05 +0200
committerShauren <shauren.trinity@gmail.com>2017-10-07 22:48:05 +0200
commitc8974a91a6dadaad6985c5a958541a210370eb58 (patch)
treea87e53e6ba331607e4f7e2df7821f6847e23ad20 /src
parentb34f5f9eab034c15b10f2d05c6a2b0e17d23a4ef (diff)
Core/DataStores: Implemented [] operator on DB2Storage (#20494)
Diffstat (limited to 'src')
-rw-r--r--src/server/shared/DataStores/DB2Store.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/shared/DataStores/DB2Store.h b/src/server/shared/DataStores/DB2Store.h
index 8280123b5d9..2c044b11613 100644
--- a/src/server/shared/DataStores/DB2Store.h
+++ b/src/server/shared/DataStores/DB2Store.h
@@ -95,6 +95,7 @@ public:
T const* LookupEntry(uint32 id) const { return (id >= _indexTableSize) ? nullptr : _indexTable.AsT[id]; }
T const* AssertEntry(uint32 id) const { return ASSERT_NOTNULL(LookupEntry(id)); }
+ T const* operator[](uint32 id) const { return LookupEntry(id); }
uint32 GetNumRows() const { return _indexTableSize; }
bool Load(std::string const& path, uint32 locale) override