mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core: Fixed a few warnings and silly typos in scripts
This commit is contained in:
@@ -500,10 +500,10 @@ namespace VMAP
|
||||
{
|
||||
model.setGroupModels(groupsArray);
|
||||
|
||||
std::string filename(iSrcDir);
|
||||
filename.push_back('/');
|
||||
filename.append(pModelFilename).append(".vmo");
|
||||
success = model.writeFile(filename);
|
||||
std::string worldModelFileName(iSrcDir);
|
||||
worldModelFileName.push_back('/');
|
||||
worldModelFileName.append(pModelFilename).append(".vmo");
|
||||
success = model.writeFile(worldModelFileName);
|
||||
}
|
||||
|
||||
//std::cout << "readRawFile2: '" << pModelFilename << "' tris: " << nElements << " nodes: " << nNodes << std::endl;
|
||||
|
||||
@@ -443,9 +443,10 @@ DumpReturn PlayerDumpReader::LoadDump(const std::string& file, uint32 account, s
|
||||
typedef PetIds::value_type PetIdsPair;
|
||||
PetIds petids;
|
||||
|
||||
uint8 gender;
|
||||
uint8 race;
|
||||
uint8 playerClass;
|
||||
uint8 gender = GENDER_NONE;
|
||||
uint8 race = RACE_NONE;
|
||||
uint8 playerClass = 0;
|
||||
|
||||
SQLTransaction trans = CharacterDatabase.BeginTransaction();
|
||||
while (!feof(fin))
|
||||
{
|
||||
|
||||
@@ -110,7 +110,7 @@ class boss_ragnaros : public CreatureScript
|
||||
|
||||
void KilledUnit(Unit* /*victim*/)
|
||||
{
|
||||
if (urand(0, 99 < 25))
|
||||
if (urand(0, 99) < 25)
|
||||
DoScriptText(SAY_KILL, me);
|
||||
}
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ public:
|
||||
{
|
||||
if (m_instance)
|
||||
{
|
||||
if (m_instance->GetData(TYPE_MOGRAINE_AND_WHITE_EVENT != NOT_STARTED))
|
||||
if (m_instance->GetData(TYPE_MOGRAINE_AND_WHITE_EVENT) != NOT_STARTED)
|
||||
m_instance->SetData(TYPE_MOGRAINE_AND_WHITE_EVENT, FAIL);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user