I worked with Huan Fang to find the source of this error–the NLCD noData value has changed, so the new noData value of 250 was incorrectly mapped to open water. Huan made the following changes to the script, and it works correctly now.
original (with line numbers):
2649 gridID = poImage_grd[k];
2650 classID = poImage[k];
2651
2652 if ( gridID > 0 && gridID <= gridPixels && classID != NoDataValue)
2653 {
2654 idIndex = nlcdIDS[classID]; //index in USGS NLCD ID pointer
should be:
2649 gridID = poImage_grd[k];
2650 classID = poImage[k];
2651
2652 std::map<int,int>::const_iterator it = nlcdIDS.find(classID);
2653
2654 if ( gridID > 0 && gridID <= gridPixels && it != nlcdIDS.end())
2655 {
2656 idIndex = it->second; //index in USGS NLCD ID pointer