1
0
Fork 0

Windows compilation fix

This commit is contained in:
James Turner 2018-06-28 22:35:27 +01:00
parent 1a7f513fb1
commit 1e3ba48a88

View file

@ -1990,7 +1990,7 @@ static naRef f_formatLatLon(naContext c, naRef me, int argc, naRef* args)
simgear::strutils::LatLonFormat format =
static_cast<simgear::strutils::LatLonFormat>(fgGetInt("/sim/lon-lat-format"));
if (argOffset < argc && naIsNum(args[argOffset])) {
format = static_cast<simgear::strutils::LatLonFormat>(args[argOffset].num);
format = static_cast<simgear::strutils::LatLonFormat>((int) args[argOffset].num);
if (format > simgear::strutils::LatLonFormat::DECIMAL_DEGREES_SYMBOL) {
naRuntimeError(c, "invalid lat-lon format requested");
}