fixed:
dragon generation breaking the game seed validation wrong
This commit is contained in:
@ -117,9 +117,8 @@ feature proc_args(int argc, char **argv,
|
||||
if (result & FEATURE_SEED) {
|
||||
std::istringstream iss {seed};
|
||||
unsigned int tmp;
|
||||
iss >> tmp;
|
||||
|
||||
if (!iss.good())
|
||||
if (!(iss >> tmp))
|
||||
return FEATURE_PANIC_SEED;
|
||||
|
||||
rng = std::make_unique<RNG>(tmp);
|
||||
|
Reference in New Issue
Block a user