diff options
author | krzys-h <krzys_h@interia.pl> | 2013-05-01 13:19:10 +0200 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2013-05-01 13:19:10 +0200 |
commit | 9e1870f6bdb24e278c06929b8bd13225a7fdf8d3 (patch) | |
tree | e95cb1832a1584ff2e6c5e02941a2d1f80c83bcd /src/object/task/taskgoto.cpp | |
parent | 293376b82d8fa313b17685b73c110a33123f9077 (diff) | |
download | colobot-9e1870f6bdb24e278c06929b8bd13225a7fdf8d3.tar.gz colobot-9e1870f6bdb24e278c06929b8bd13225a7fdf8d3.tar.bz2 colobot-9e1870f6bdb24e278c06929b8bd13225a7fdf8d3.zip |
Removed some warnings
+ fix for previous commit
Diffstat (limited to 'src/object/task/taskgoto.cpp')
-rw-r--r-- | src/object/task/taskgoto.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object/task/taskgoto.cpp b/src/object/task/taskgoto.cpp index 3177131..97331dd 100644 --- a/src/object/task/taskgoto.cpp +++ b/src/object/task/taskgoto.cpp @@ -756,7 +756,7 @@ Error CTaskGoto::Start(Math::Vector goal, float altitude, Error CTaskGoto::IsEnded() { Math::Vector pos; - float limit, angle, dist, h, level; + float limit, angle = 0.0f, dist, h, level; if ( m_engine->GetPause() ) return ERR_CONTINUE; if ( m_error != ERR_OK ) return m_error; @@ -1338,7 +1338,7 @@ bool CTaskGoto::GetHotPoint(CObject *pObj, Math::Vector &pos, bool CTaskGoto::LeakSearch(Math::Vector &pos, float &delay) { - CObject *pObj, *pObstacle; + CObject *pObj, *pObstacle = nullptr; Math::Vector iPos, oPos, bPos; float iRadius, oRadius, bRadius, dist, min, dir; int i, j; |