Eluna add asserts for typename

This commit is contained in:
Rochet2
2014-09-08 13:27:16 +03:00
parent e956e00a03
commit 10c81df2cd
2 changed files with 20 additions and 5 deletions

View File

@@ -152,9 +152,9 @@ namespace LuaGlobalFunctions
if (Player* player = it->second->GetPlayer())
{
#ifndef TRINITY
if (player->GetSession() && ((team >= TEAM_NEUTRAL || player->GetTeamId() == team) && (!onlyGM || player->isGameMaster())))
if ((team == TEAM_NEUTRAL || player->GetTeamId() == team) && (!onlyGM || player->isGameMaster()))
#else
if (player->GetSession() && ((team >= TEAM_NEUTRAL || player->GetTeamId() == team) && (!onlyGM || player->IsGameMaster())))
if ((team == TEAM_NEUTRAL || player->GetTeamId() == team) && (!onlyGM || player->IsGameMaster()))
#endif
{
++i;
@@ -1262,7 +1262,6 @@ namespace LuaGlobalFunctions
item->SaveToDB();
#else
item->SaveToDB(trans);
SQLTransaction trans = CharacterDatabase.BeginTransaction();
#endif
draft.AddItem(item);
++addedItems;