Skip to content

Commit fcb1ea9

Browse files
committedDec 3, 2014
Settings: Fix getNoiseParamsFromValue()
1 parent 68c799b commit fcb1ea9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/settings.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ bool Settings::getNoiseParamsFromValue(const std::string &name,
487487
np.spread.X = stof(f.next(","));
488488
np.spread.Y = stof(f.next(","));
489489
np.spread.Z = stof(f.next(")"));
490+
f.next(",");
490491
np.seed = stoi(f.next(","));
491492
np.octaves = stoi(f.next(","));
492493
np.persist = stof(f.next(""));

1 commit comments

Comments
 (1)

Zeno- commented on Dec 3, 2014

@Zeno-
Contributor

Is stof() acceptable? It's C++11 IIRC

Edit: or is it in util/ somewhere?

Please sign in to comment.