aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Grids/NGrid.h
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2012-08-30 22:44:33 +0100
committerNay <dnpd.dd@gmail.com>2012-08-30 22:44:33 +0100
commite3d9768a50a3b2b700d65e0cc96e697a5c9d22dc (patch)
tree221f2bc4bd2745ab9bcc7389523f4a43d8ac8b11 /src/server/game/Grids/NGrid.h
parentabbb896cfb73017cf1c313d597984a9ce0a9dcab (diff)
Core: Fix many "errors"/warnings and coding style (3)
Game Errors were found using Cppcheck, open-source static analysis tool
Diffstat (limited to 'src/server/game/Grids/NGrid.h')
-rwxr-xr-xsrc/server/game/Grids/NGrid.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/game/Grids/NGrid.h b/src/server/game/Grids/NGrid.h
index b5701a7a590..6bf558a4d5e 100755
--- a/src/server/game/Grids/NGrid.h
+++ b/src/server/game/Grids/NGrid.h
@@ -79,9 +79,8 @@ class NGrid
public:
typedef Grid<ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES> GridType;
NGrid(uint32 id, int32 x, int32 y, time_t expiry, bool unload = true)
- : i_gridId(id), i_x(x), i_y(y), i_cellstate(GRID_STATE_INVALID), i_GridObjectDataLoaded(false)
+ : i_gridId(id), i_x(x), i_y(y), i_cellstate(GRID_STATE_INVALID), i_GridObjectDataLoaded(false), i_GridInfo(GridInfo(expiry, unload))
{
- i_GridInfo = GridInfo(expiry, unload);
}
GridType& GetGridType(const uint32 x, const uint32 y)