From 4cf0fe5aab7f5a1b349f116d80126c7e34cddff3 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Mon, 25 Mar 2019 23:52:48 -0400 Subject: [PATCH] Fix sim.deleteStamp not updating stamps.def --- src/client/Client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 9ba0fc444..24ff64240 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -1048,12 +1048,12 @@ void Client::DeleteStamp(ByteString stampID) { for (std::list::iterator iterator = stampIDs.begin(), end = stampIDs.end(); iterator != end; ++iterator) { - if((*iterator) == stampID) + if ((*iterator) == stampID) { ByteString stampFilename = ByteString::Build(STAMPS_DIR, PATH_SEP, stampID, ".stm"); remove(stampFilename.c_str()); stampIDs.erase(iterator); - return; + break; } }