AP_Scripting: update locations_are_same to same_latlon_as

This commit is contained in:
Pierre Kancir 2019-04-08 13:53:13 +02:00 committed by Tom Pittenger
parent d8990a002e
commit ad75b1e56f

View File

@ -287,7 +287,7 @@ static int location_equal(lua_State *L) {
Location *l2 = check_location(L, -2);
Location *l1 = check_location(L, -1);
lua_pushboolean(L, locations_are_same(*l1, *l2));
lua_pushboolean(L, l1->same_latlon_as(*l2));
return 1;
}