Fix returning reference to temporary.
This commit is contained in:
parent
b6695cd3fa
commit
2a4657c609
2 changed files with 2 additions and 2 deletions
|
@ -380,7 +380,7 @@ FGGlobals::get_aircraft_position() const
|
|||
throw sg_exception("Can't get aircraft position", "FGGlobals::get_aircraft_position()" );
|
||||
}
|
||||
|
||||
const SGVec3d&
|
||||
SGVec3d
|
||||
FGGlobals::get_aircraft_positon_cart() const
|
||||
{
|
||||
return SGVec3d::fromGeod(get_aircraft_position());
|
||||
|
|
|
@ -267,7 +267,7 @@ public:
|
|||
|
||||
const SGGeod & get_aircraft_position() const;
|
||||
|
||||
const SGVec3d& get_aircraft_positon_cart() const;
|
||||
SGVec3d get_aircraft_positon_cart() const;
|
||||
|
||||
inline FGModelMgr *get_model_mgr () { return model_mgr; }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue