mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-01-17 14:28:30 +01:00
Fix stamps being impossible to delete
Broken by 416f84a1c49e9293fe9ce42d6fe49dc85fab6b49, oops.
This commit is contained in:
parent
1c92280097
commit
e5fec98d28
@ -512,6 +512,7 @@ void Client::DeleteStamp(ByteString stampID)
|
|||||||
if (it != stampIDs.end())
|
if (it != stampIDs.end())
|
||||||
{
|
{
|
||||||
stampIDs.erase(it, stampIDs.end());
|
stampIDs.erase(it, stampIDs.end());
|
||||||
|
Platform::RemoveFile(ByteString::Build(STAMPS_DIR, PATH_SEP_CHAR, stampID, ".stm"));
|
||||||
WriteStamps();
|
WriteStamps();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user