Fix sim.deleteStamp not updating stamps.def

This commit is contained in:
jacob1 2019-03-25 23:52:48 -04:00
parent e9011033eb
commit 4cf0fe5aab

View File

@ -1048,12 +1048,12 @@ void Client::DeleteStamp(ByteString stampID)
{ {
for (std::list<ByteString>::iterator iterator = stampIDs.begin(), end = stampIDs.end(); iterator != end; ++iterator) for (std::list<ByteString>::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"); ByteString stampFilename = ByteString::Build(STAMPS_DIR, PATH_SEP, stampID, ".stm");
remove(stampFilename.c_str()); remove(stampFilename.c_str());
stampIDs.erase(iterator); stampIDs.erase(iterator);
return; break;
} }
} }