diff --git a/src/pair_hybrid.cpp b/src/pair_hybrid.cpp index b67f98a726..002429e7b3 100644 --- a/src/pair_hybrid.cpp +++ b/src/pair_hybrid.cpp @@ -551,7 +551,7 @@ void PairHybrid::init_style() // same style must not be used multiple times for (istyle = 0; istyle < nstyles; istyle++) { - bool is_gpu = (((PairHybrid *)styles[m])->suffix_flag & Suffix::GPU); + bool is_gpu = (((PairHybrid *)styles[istyle])->suffix_flag & Suffix::GPU); if (multiple[istyle] && is_gpu) error->all(FLERR,"GPU package styles must not be used multiple times"); }