From 5757066312cab082378dbc5d8df97dea3fe40af0 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 10 Jan 2010 05:22:25 +0000 Subject: Fix initialization order in Being and Map --- src/being.cpp | 4 ++-- src/map.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/being.cpp b/src/being.cpp index 6ae71f85..6e8449a4 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -94,8 +94,8 @@ Being::Being(int id, int job, Map *map): #endif mPx(0), mPy(0), mX(0), mY(0), - mUsedTargetCursor(NULL), - mTakedDamage(0) + mTakedDamage(0), + mUsedTargetCursor(NULL) { setMap(map); diff --git a/src/map.cpp b/src/map.cpp index 73686d61..db1e9aa2 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -185,9 +185,9 @@ Map::Map(int width, int height, int tileWidth, int tileHeight): mWidth(width), mHeight(height), mTileWidth(tileWidth), mTileHeight(tileHeight), mMaxTileHeight(height), + mDebugFlags(MAP_NORMAL), mOnClosedList(1), mOnOpenList(2), - mLastScrollX(0.0f), mLastScrollY(0.0f), - mDebugFlags(MAP_NORMAL) + mLastScrollX(0.0f), mLastScrollY(0.0f) { const int size = mWidth * mHeight; -- cgit v1.2.3-70-g09d2