mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 01:00:25 +00:00
fixed the uninitialized variable warning
This commit is contained in:
parent
14012bf773
commit
9e9fbbbcd3
2
game.cpp
2
game.cpp
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user