summaryrefslogtreecommitdiff
path: root/src/game-server/itemmanager.cpp
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-04-02 22:25:24 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-04-02 22:28:24 +0200
commit4a8080dcf73dab2b6e62b8500fec3bb996bcbf17 (patch)
tree67ef51dbb1b360f9a3e7c38cf0dbeb2b5f001bfd /src/game-server/itemmanager.cpp
parentad3958701136ff8ae4a4fc749ef616cc8917d2af (diff)
downloadmanaserv-4a8080dcf73dab2b6e62b8500fec3bb996bcbf17.tar.gz
manaserv-4a8080dcf73dab2b6e62b8500fec3bb996bcbf17.tar.bz2
manaserv-4a8080dcf73dab2b6e62b8500fec3bb996bcbf17.tar.xz
manaserv-4a8080dcf73dab2b6e62b8500fec3bb996bcbf17.zip
Fixed multiple warnings and errors that blocked c++0x
This allows the server to compile with c++0x (and enables it). This also includes some coding style / readabillity fixes.
Diffstat (limited to 'src/game-server/itemmanager.cpp')
-rw-r--r--src/game-server/itemmanager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game-server/itemmanager.cpp b/src/game-server/itemmanager.cpp
index 4837ce98..504ba127 100644
--- a/src/game-server/itemmanager.cpp
+++ b/src/game-server/itemmanager.cpp
@@ -159,8 +159,7 @@ void ItemManager::readEquipSlotsFile()
<< ", capacity: " << capacity << ", visible? " << visible);
EquipSlotInfo *equipSlotInfo =
new EquipSlotInfo(slotId, name, capacity, visible);
- mEquipSlotsInfo.insert(
- std::make_pair<unsigned, EquipSlotInfo*>(slotId, equipSlotInfo));
+ mEquipSlotsInfo.insert(std::make_pair(slotId, equipSlotInfo));
mNamedEquipSlotsInfo.insert(name, equipSlotInfo);
totalCapacity += capacity;