Skip to content

Commit

Permalink
[12528] Hotfix to recent text loading functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Schmoozerd committed Jun 3, 2013
1 parent 3864bea commit d8584fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/game/ObjectMgr.cpp
Expand Up @@ -7431,13 +7431,13 @@ inline void _DoStringError(int32 entry, char const* text, ...)
va_end(ap);

if (entry <= MAX_CREATURE_AI_TEXT_STRING_ID) // script library error
sLog.outErrorScriptLib("%s", entry, buf);
sLog.outErrorScriptLib("%s", buf);
else if (entry <= MIN_CREATURE_AI_TEXT_STRING_ID) // eventAI error
sLog.outErrorEventAI("%s", entry, buf);
sLog.outErrorEventAI("%s", buf);
else if (entry < MIN_DB_SCRIPT_STRING_ID) // mangos string error
sLog.outError("%s");
else // if (entry > MIN_DB_SCRIPT_STRING_ID) // DB script text error
sLog.outErrorDb("DB-SCRIPTS: %s", entry, buf);
sLog.outErrorDb("DB-SCRIPTS: %s", buf);
}

bool ObjectMgr::LoadMangosStrings(DatabaseType& db, char const* table, int32 min_value, int32 max_value, bool extra_content)
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12527"
#define REVISION_NR "12528"
#endif // __REVISION_NR_H__

0 comments on commit d8584fe

Please sign in to comment.