From d9333e02fa455303b7236b6f002625f2cad4ed19 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 27 Oct 2011 18:01:56 -0400 Subject: Clear flags before rebuilding them from the databases. Fixes bug #1351 where default flags would always be set when unserializing objects. --- include/services.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/services.h b/include/services.h index 1179068b5..3ce8ad86f 100644 --- a/include/services.h +++ b/include/services.h @@ -332,6 +332,8 @@ template class Flags void FromVector(const std::vector &strings) { + this->ClearFlags(); + for (unsigned i = 0; this->Flag_Strings && !this->Flag_Strings[i].empty(); ++i) for (unsigned j = 0; j < strings.size(); ++j) if (this->Flag_Strings[i] == strings[j]) -- cgit