Show
Ignore:
Timestamp:
11/22/08 00:35:41 (17 years ago)
Author:
yumileroy
Message:

Delete possessed AI only on creature delete.

Original author: gvcoman
Date: 2008-11-16 14:38:02-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/GMTicketMgr.h

    r263 r272  
    5151            m_text = text ? text : ""; 
    5252            m_lastUpdate = time(NULL); 
    53  
    54             std::string escapedString = m_text; 
    55             CharacterDatabase.escape_string(escapedString); 
    56             CharacterDatabase.PExecute("UPDATE character_ticket SET ticket_text = '%s' WHERE guid = '%u'", escapedString.c_str(), m_guid); 
     53            CharacterDatabase.PExecute("UPDATE character_ticket SET ticket_text = '%s' WHERE guid = '%u'", m_text.c_str(), m_guid); 
    5754        } 
    5855 
     
    6663            CharacterDatabase.BeginTransaction(); 
    6764            DeleteFromDB(); 
    68  
    69             std::string escapedString = m_text; 
    70             CharacterDatabase.escape_string(escapedString); 
    71  
    72             CharacterDatabase.PExecute("INSERT INTO character_ticket (guid, ticket_text) VALUES ('%u', '%s')", m_guid, escapedString.c_str()); 
     65            CharacterDatabase.PExecute("INSERT INTO character_ticket (guid, ticket_text) VALUES ('%u', '%s')", m_guid, GetText()); 
    7366            CharacterDatabase.CommitTransaction(); 
    7467        }