Fix build with Visual Studio

Regression from commit 8ee6ed786c.
This commit is contained in:
Jyrki Vesterinen 2019-03-04 19:22:25 +02:00
parent be0d938e15
commit 0379e2e832

View file

@ -621,7 +621,7 @@ static config unit_vision(const unit* u)
tooltip << _("vision:") << ' ' << u->vision() << '\n';
}
if (u->jamming() != 0) {
if (str.tellp() == 0)
if (static_cast<std::streamoff>(str.tellp()) == 0)
str << _("jamming:") << ' ' << u->jamming();
tooltip << _("jamming:") << ' ' << u->jamming() << '\n';
}