Commit 98ef5be1 authored by Mark Olesen's avatar Mark Olesen

GIT: fix previous dirty commit

parent 0d78d97e
......@@ -353,7 +353,7 @@ void Foam::ensightFile::writeList
{
for (const label id : addr)
{
if (idx >= field.size() || std::isnan(field[id]))
if (id < 0 || id >= field.size() || std::isnan(field[id]))
{
writeUndef();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment