mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-01 06:00:15 +02:00
Fix invalid stamps names being accepted
The .size() == 14 check got lost in the last commit.
This commit is contained in:
@@ -983,7 +983,10 @@ void Client::RescanStamps()
|
||||
stampIDs.clear();
|
||||
for (auto &stamp : Platform::DirectorySearch("stamps", "", { ".stm" }))
|
||||
{
|
||||
stampIDs.push_front(stamp.Substr(0, 10));
|
||||
if (stamp.size() == 14)
|
||||
{
|
||||
stampIDs.push_front(stamp.Substr(0, 10));
|
||||
}
|
||||
}
|
||||
stampIDs.sort(std::greater<ByteString>());
|
||||
updateStamps();
|
||||
|
Reference in New Issue
Block a user