]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/itemgroup.h
Fix broken FPS/dtime counters in debug info
[dragonfireclient.git] / src / itemgroup.h
index 2206857fd48b652c466246418b820ec0f59bce28..fcf72064979bcc600b7254e13719c194c17bac72 100644 (file)
@@ -17,13 +17,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef ITEMGROUP_HEADER
-#define ITEMGROUP_HEADER
+#pragma once
 
 #include <string>
-#include "util/cpp11_container.h"
+#include <unordered_map>
 
-typedef UNORDERED_MAP<std::string, int> ItemGroupList;
+typedef std::unordered_map<std::string, int> ItemGroupList;
 
 static inline int itemgroup_get(const ItemGroupList &groups, const std::string &name)
 {
@@ -32,5 +31,3 @@ static inline int itemgroup_get(const ItemGroupList &groups, const std::string &
                return 0;
        return i->second;
 }
-
-#endif