summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/drain.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/drain.cc b/src/sim/drain.cc
index 8549da261..c60734876 100644
--- a/src/sim/drain.cc
+++ b/src/sim/drain.cc
@@ -150,7 +150,7 @@ DrainManager::drainableCount() const
Drainable::Drainable()
: _drainManager(DrainManager::instance()),
- _drainState(DrainState::Running)
+ _drainState(_drainManager.state())
{
_drainManager.registerDrainable(this);
}