Changed: #825 Remove all warnings when compiling Ryzom

This commit is contained in:
kervala 2012-09-25 14:15:04 +02:00
parent bc477d7d8a
commit 25bfadcff8

View file

@ -254,7 +254,7 @@ void CPatchManager::init(const std::vector<std::string>& patchURIs, const std::s
}
srand(NLMISC::CTime::getSecondsSince1970());
UsedServer = (sint)((float)(rand() / (RAND_MAX+1)) * (sint)PatchServers.size());
UsedServer = (sint)(((double)rand() / ((double)RAND_MAX+1.0)) * (double)PatchServers.size());
ServerPath = CPath::standardizePath (sServerPath);
ServerVersion = sServerVersion;