From 6ccb5835ff55d85156be91473c598eca9d6cb9a6 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Wed, 4 Nov 2020 16:57:41 +0100 Subject: Revert "Make Lint Happy" This reverts commit ad148587dcf5244c2d2011dba339786c765c54c4. --- src/staticobject.h | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'src/staticobject.h') diff --git a/src/staticobject.h b/src/staticobject.h index fd1b78315..6fb486193 100644 --- a/src/staticobject.h +++ b/src/staticobject.h @@ -50,12 +50,16 @@ public: */ void insert(u16 id, const StaticObject &obj) { - if (id == 0) { + if(id == 0) + { m_stored.push_back(obj); - } else { - if (m_active.find(id) != m_active.end()) { - dstream << "ERROR: StaticObjectList::insert(): " - << "id already exists" << std::endl; + } + else + { + if(m_active.find(id) != m_active.end()) + { + dstream<<"ERROR: StaticObjectList::insert(): " + <<"id already exists"<