1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

fixed the uninitialized variable warning

This commit is contained in:
Zeno Rogue 2017-08-14 20:32:22 +02:00
parent 14012bf773
commit 9e9fbbbcd3

View File

@ -1235,7 +1235,7 @@ int monstersnear(cell *c, cell *nocount, eMonster who, cell *pushto, cell *comef
if(who == moPlayer) for(int b=0; b<2; b++) sm.swordlast[b] = sword::pos(multi::cpid, b);
cell *none;
cell *none = NULL;
cell **wcw = &cwt.c;
if(who != moPlayer) wcw = &none;
else if(multi::players > 1) wcw = &multi::player[multi::cpid].c;