mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user