mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
Core: Warning fixes
This commit is contained in:
@@ -48,7 +48,10 @@ ModelList model_list;
|
||||
|
||||
void LoadGameObjectModelList()
|
||||
{
|
||||
#ifndef NO_CORE_FUNCS
|
||||
uint32 oldMSTime = getMSTime();
|
||||
#endif
|
||||
|
||||
FILE* model_list_file = fopen((sWorld->GetDataPath() + "vmaps/" + VMAP::GAMEOBJECT_MODELS).c_str(), "rb");
|
||||
if (!model_list_file)
|
||||
{
|
||||
|
||||
@@ -146,7 +146,7 @@ namespace Movement
|
||||
//data.append<float>(&mov.m_float_values[SpeedWalk], SpeedMaxCount);
|
||||
//if (mov.SplineEnabled())
|
||||
{
|
||||
MoveSplineFlag splineFlags = move_spline.splineflags;
|
||||
MoveSplineFlag const& splineFlags = move_spline.splineflags;
|
||||
|
||||
data << splineFlags.raw();
|
||||
|
||||
|
||||
@@ -298,7 +298,7 @@ class boss_lord_marrowgar : public CreatureScript
|
||||
case DATA_SPIKE_IMMUNE + 1:
|
||||
case DATA_SPIKE_IMMUNE + 2:
|
||||
{
|
||||
int32 index = type - DATA_SPIKE_IMMUNE;
|
||||
uint32 index = uint32(type - DATA_SPIKE_IMMUNE);
|
||||
if (index < _boneSpikeImmune.size())
|
||||
return _boneSpikeImmune[index];
|
||||
|
||||
|
||||
@@ -957,7 +957,7 @@ namespace MMAP
|
||||
if (count != 1)
|
||||
return false;
|
||||
|
||||
if (header.mmapMagic != MMAP_MAGIC || header.dtVersion != DT_NAVMESH_VERSION)
|
||||
if (header.mmapMagic != MMAP_MAGIC || header.dtVersion != uint32(DT_NAVMESH_VERSION))
|
||||
return false;
|
||||
|
||||
if (header.mmapVersion != MMAP_VERSION)
|
||||
|
||||
Reference in New Issue
Block a user