mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 03:09:53 +02:00
Fix sim.deleteStamp not updating stamps.def
This commit is contained in:
@@ -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