1
0
Fork 0

Fix returning reference to temporary.

This commit is contained in:
Mathias Froehlich 2011-10-30 10:31:41 +01:00
parent b6695cd3fa
commit 2a4657c609
2 changed files with 2 additions and 2 deletions

View file

@ -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());

View file

@ -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; }