fix cut-n-paste bug detected by coverity scan

This commit is contained in:
Axel Kohlmeyer
2021-04-23 04:39:21 -04:00
parent 53a0ded240
commit 7bae94cb49

View File

@ -266,7 +266,7 @@ void FixNVESpin::init()
// init length of vector of ptrs to precession/spin styles
if (nlangspin > 0) {
locklangevinspin = new FixLangevinSpin*[nprecspin];
locklangevinspin = new FixLangevinSpin*[nlangspin];
}
// loop 2: fill vector with ptrs to precession/spin styles