X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=init.c;h=4be4b6288297951d89fc836ed3e6babf2f5c4187;hb=2db3bed3f1ee0a220bf1d1b818716afb90b30b35;hp=aabd1cb3f5791910b6072100415503213f342c79;hpb=b247359d7f5422fe0c5c1f78d05da01c7d311f9e;p=open-adventure.git diff --git a/init.c b/init.c index aabd1cb..4be4b62 100644 --- a/init.c +++ b/init.c @@ -1,8 +1,7 @@ /* * Initialisation * - * SPDX-FileCopyrightText: 1977, 2005 by Will Crowther and Don Woods - * SPDX-FileCopyrightText: 2017 by Eric S. Raymond + * SPDX-FileCopyrightText: Copright 1977, 2005 by Will Crowther and Don Woodsm, Copyright 2017 by Eric S. Raymond * SPDX-License-Identifier: BSD-2-Clause */ @@ -46,8 +45,7 @@ int initialise(void) int seedval = (int)rand(); set_seed(seedval); - assert(NDWARVES == NDWARFLOCS); - for (int i = 1; i <= NDWARFLOCS; i++) { + for (int i = 1; i <= NDWARVES; i++) { game.dwarves[i].loc = dwarflocs[i-1]; }