1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 15:00:26 +00:00

fixed some uninitialized variable warnings

This commit is contained in:
Zeno Rogue 2019-04-04 14:36:58 +02:00
parent 57f2891826
commit f9db5b3863
2 changed files with 3 additions and 3 deletions

View File

@ -400,7 +400,7 @@ namespace reg3 {
if(S7 == 12) { if(S7 == 12) {
// Emerald in 534 // Emerald in 534
cell *a = gamestart(); cell *a = gamestart();
cell *b; cell *b = a;
for(cell *c: allcells()) for(cell *c: allcells())
if(hr::celldistance(a, c) == 5) { if(hr::celldistance(a, c) == 5) {
b = c; b = c;
@ -442,7 +442,7 @@ namespace reg3 {
if(ok) nwi.insert(i); if(ok) nwi.insert(i);
} }
int gpow; int gpow = 0;
for(int i: nwi) { for(int i: nwi) {
int pw = 1; int pw = 1;

View File

@ -1008,7 +1008,7 @@ struct horo_distance {
a = abs(binary::horo_level(ih1)); a = abs(binary::horo_level(ih1));
} }
else else
b = intval(h1, tC0(ggmatrix(c))); a = 0, b = intval(h1, tC0(ggmatrix(c)));
} }
bool operator < (const horo_distance z) { bool operator < (const horo_distance z) {
if(binarytiling) { if(binarytiling) {