Core: Corrected NULL usage, it should only be used with pointers, not integers

This commit is contained in:
Shauren committed 2011-04-23 15:53:48 +02:00
1 parent a2a751b9d6
commit 8898db8b27
56 files changed
+216 -217

No files matched your search

+1 -1
View File
@@ -702,7 +702,7 @@ void WorldSession::SaveTutorialsData(SQLTransaction &trans)
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_GET_HAS_TUTORIALS);
stmt->setUInt32(0, GetAccountId());
bool hasTutorials = (CharacterDatabase.Query(stmt) != NULL);
bool hasTutorials = CharacterDatabase.Query(stmt).null();
// Modify data in DB
stmt = CharacterDatabase.GetPreparedStatement(hasTutorials ? CHAR_SET_TUTORIALS : CHAR_ADD_TUTORIALS);
for (uint8 i = 0; i < MAX_ACCOUNT_TUTORIAL_VALUES; ++i)