make certain that offset is always initialized

This commit is contained in:
Axel Kohlmeyer
2022-01-22 16:45:38 -05:00
parent 900ff39403
commit c93fba5e2d

View File

@ -232,6 +232,7 @@ void PairList::settings(int narg, char **arg)
while ((line = reader.next_line())) {
ValueTokenizer values(line);
list_param oneparam;
oneparam.offset = 0.0;
oneparam.id1 = values.next_tagint();
oneparam.id2 = values.next_tagint();
oneparam.style = stylename[values.next_string()];