mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
silenced a warning
This commit is contained in:
parent
cfbf444628
commit
ef8360f346
@ -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" };
|
||||
|
Loading…
x
Reference in New Issue
Block a user