1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fixed tracking autosaves.

This commit is contained in:
Michał W. Urbańczyk 2014-03-01 17:35:56 +00:00
parent a6f68d6870
commit 03fbd4e8a7

View File

@ -1674,7 +1674,7 @@ int CPlayerInterface::getLastIndex( std::string namePrefix)
if(is_regular(dir->status()))
{
std::string name = dir->path().leaf().string();
if(starts_with(name, namePrefix) && ends_with(name, ".vlgm1"))
if(starts_with(name, namePrefix) && ends_with(name, ".vcgm1"))
{
char nr = name[namePrefix.size()];
if(std::isdigit(nr))