mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-06 16:36:32 +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();
|
stampIDs.clear();
|
||||||
for (auto &stamp : Platform::DirectorySearch("stamps", "", { ".stm" }))
|
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>());
|
stampIDs.sort(std::greater<ByteString>());
|
||||||
updateStamps();
|
updateStamps();
|
||||||
|
Reference in New Issue
Block a user