diff --git a/apps/opencs/model/world/nestedcoladapterimp.cpp b/apps/opencs/model/world/nestedcoladapterimp.cpp index 1f9958e84e..b96cf46465 100644 --- a/apps/opencs/model/world/nestedcoladapterimp.cpp +++ b/apps/opencs/model/world/nestedcoladapterimp.cpp @@ -1076,7 +1076,7 @@ namespace CSMWorld } else if (subColIndex == 1) { - if (subRowIndex >= 0 && subRowIndex < region.mData.mProbabilities.size()) + if (subRowIndex >= 0 && static_cast(subRowIndex) < region.mData.mProbabilities.size()) return region.mData.mProbabilities[subRowIndex]; }