Fix unitialized variables warning.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11416 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
8d0efc507d
commit
a11814e87f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue