Fix sim.deleteStamp not updating stamps.def
This commit is contained in:
parent
e9011033eb
commit
4cf0fe5aab
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user