1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-01 02:15:32 +00:00

silenced a warning

This commit is contained in:
Marc Zinnschlag 2013-11-10 21:45:27 +01:00
parent cfbf444628
commit ef8360f346

View file

@ -274,7 +274,7 @@ void MWMechanics::Alchemy::addPotion (const std::string& name)
newRecord.mName = name;
int index = static_cast<int> (std::rand()/static_cast<double> (RAND_MAX+1)*6);
int index = static_cast<int> (std::rand()/(static_cast<double> (RAND_MAX)+1)*6);
assert (index>=0 && index<6);
static const char *name[] = { "standard", "bargain", "cheap", "fresh", "exclusive", "quality" };