diff options
author | megamage <none@none> | 2009-02-26 10:31:28 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-26 10:31:28 -0600 |
commit | 1af157d0129add19d88e554188f58cc60653dc89 (patch) | |
tree | dae5c263ee9f221563f5ee0e3fa3dbfcd751f206 /src | |
parent | 58d01932afdb4ffd6a4ae8a453f9e1c62f8db9e8 (diff) |
*Initialize some variables of grid lock. By Vladimir.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/framework/GameSystem/NGrid.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/framework/GameSystem/NGrid.h b/src/framework/GameSystem/NGrid.h index ec5edfe1fb2..a4863bb287e 100644 --- a/src/framework/GameSystem/NGrid.h +++ b/src/framework/GameSystem/NGrid.h @@ -31,8 +31,10 @@ class GridInfo { public: - GridInfo() : i_timer(0) {} - GridInfo(time_t expiry, bool unload = true ) : i_timer(expiry), i_unloadExplicitLock(!unload) {} + GridInfo() + : i_timer(0), i_unloadActiveLockCount(0), i_unloadExplicitLock(false), i_unloadReferenceLock(false) {} + GridInfo(time_t expiry, bool unload = true ) + : i_timer(expiry), i_unloadActiveLockCount(0), i_unloadExplicitLock(!unload), i_unloadReferenceLock(false) {} const TimeTracker& getTimeTracker() const { return i_timer; } bool getUnloadLock() const { return i_unloadActiveLockCount || i_unloadExplicitLock || i_unloadReferenceLock; } void setUnloadExplicitLock( bool on ) { i_unloadExplicitLock = on; } |