aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/GMTicketHandler.cpp4
-rw-r--r--src/game/Makefile.am3
-rw-r--r--win/VC71/game.vcproj9
-rw-r--r--win/VC80/game.vcproj12
-rw-r--r--win/VC90/game.vcproj12
5 files changed, 38 insertions, 2 deletions
diff --git a/src/game/GMTicketHandler.cpp b/src/game/GMTicketHandler.cpp
index 8d16fe3697f..8718226464d 100644
--- a/src/game/GMTicketHandler.cpp
+++ b/src/game/GMTicketHandler.cpp
@@ -128,8 +128,8 @@ void WorldSession::HandleGMTicketCreateOpcode( WorldPacket & recv_data )
DEBUG_LOG("update the ticket\n");
//TODO: Guard player map
- HashMapHolder::MapType &m = ObjectAccessor::Instance().GetPlayers();
- for(HashMapHolder::MapType::iterator itr = m.begin(); itr != m.end(); ++itr)
+ HashMapHolder<Player>::MapType &m = ObjectAccessor::Instance().GetPlayers();
+ for(HashMapHolder<Player>::MapType::iterator itr = m.begin(); itr != m.end(); ++itr)
{
if(itr->second->GetSession()->GetSecurity() >= SEC_GAMEMASTER && itr->second->isAcceptTickets())
ChatHandler(itr->second).PSendSysMessage(LANG_COMMAND_TICKETNEW,GetPlayer()->GetName());
diff --git a/src/game/Makefile.am b/src/game/Makefile.am
index ddadee44f9b..f79eede504e 100644
--- a/src/game/Makefile.am
+++ b/src/game/Makefile.am
@@ -117,6 +117,9 @@ $(srcdir)/GlobalEvents.h \
$(srcdir)/GMTicketHandler.cpp \
$(srcdir)/GMTicketMgr.cpp \
$(srcdir)/GMTicketMgr.h \
+$(srcdir)/GMTicketHandler.cpp \
+$(srcdir)/GMTicketMgr.cpp \
+$(srcdir)/GMTicketMgr.h \
$(srcdir)/GossipDef.cpp \
$(srcdir)/GossipDef.h \
$(srcdir)/GridDefines.h \
diff --git a/win/VC71/game.vcproj b/win/VC71/game.vcproj
index 2a260c26d61..6c14ab272d6 100644
--- a/win/VC71/game.vcproj
+++ b/win/VC71/game.vcproj
@@ -253,6 +253,9 @@
RelativePath="..\..\src\game\GameEvent.h">
</File>
<File
+ RelativePath="..\..\src\game\GMTicketHandler.cpp">
+ </File>
+ <File
RelativePath="..\..\src\game\GossipDef.cpp">
</File>
<File
@@ -614,6 +617,12 @@
RelativePath="..\..\src\game\GameObject.h">
</File>
<File
+ RelativePath="..\..\src\game\GMTicketMgr.cpp">
+ </File>
+ <File
+ RelativePath="..\..\src\game\GMTicketMgr.h">
+ </File>
+ <File
RelativePath="..\..\src\game\GuardAI.cpp">
</File>
<File
diff --git a/win/VC80/game.vcproj b/win/VC80/game.vcproj
index e0778b07108..9ce5146d8b1 100644
--- a/win/VC80/game.vcproj
+++ b/win/VC80/game.vcproj
@@ -515,6 +515,10 @@
>
</File>
<File
+ RelativePath="..\..\src\game\GMTicketHandler.cpp"
+ >
+ </File>
+ <File
RelativePath="..\..\src\game\GossipDef.cpp"
>
</File>
@@ -975,6 +979,14 @@
>
</File>
<File
+ RelativePath="..\..\src\game\GMTicketMgr.cpp"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\game\GMTicketMgr.h"
+ >
+ </File>
+ <File
RelativePath="..\..\src\game\GuardAI.cpp"
>
</File>
diff --git a/win/VC90/game.vcproj b/win/VC90/game.vcproj
index 1dde7c90d41..9ca7efc8178 100644
--- a/win/VC90/game.vcproj
+++ b/win/VC90/game.vcproj
@@ -520,6 +520,10 @@
>
</File>
<File
+ RelativePath="..\..\src\game\GMTicketHandler.cpp"
+ >
+ </File>
+ <File
RelativePath="..\..\src\game\GossipDef.cpp"
>
</File>
@@ -980,6 +984,14 @@
>
</File>
<File
+ RelativePath="..\..\src\game\GMTicketMgr.cpp"
+ >
+ </File>
+ <File
+ RelativePath="..\..\src\game\GMTicketMgr.h"
+ >
+ </File>
+ <File
RelativePath="..\..\src\game\GuardAI.cpp"
>
</File>