Fix unitialized variables warning.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11416 4a71c877-e1ca-e34f-864e-861f7616d084
master
Christian Ohm 2010-08-10 18:59:42 +00:00 committed by Git SVN Gateway
parent 8d0efc507d
commit a11814e87f
1 changed files with 2 additions and 2 deletions

View File

@ -1796,7 +1796,7 @@ void actionUpdateDroid(DROID *psDroid)
if (actionDroidOnBuildPos(psDroid,
(SDWORD)psDroid->orderX,(SDWORD)psDroid->orderY, psDroid->psTarStats))
{
SDWORD pbx, pby;
SDWORD pbx = 0, pby = 0;
actionHomeBasePos(psDroid->player, &pbx, &pby);
if (pbx == 0 || pby == 0)
@ -1903,7 +1903,7 @@ void actionUpdateDroid(DROID *psDroid)
if (actionDroidOnBuildPos(psDroid,
(SDWORD)psDroid->actionX,(SDWORD)psDroid->actionY, psDroid->psTarStats))
{
SDWORD pbx, pby;
SDWORD pbx = 0, pby = 0;
actionHomeBasePos(psDroid->player, &pbx, &pby);
if (pbx == 0 || pby == 0)