X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=main.c;h=526eda171513899093f5a381e7a218d621d4fc86;hp=3d23c968f7b8fe531c5c7decbc9d1a1699b57284;hb=d844c2a3913e1c7d331b080a4a09631e515d9364;hpb=d92da991062fac03934d029aa4323962a9afa7e1 diff --git a/main.c b/main.c index 3d23c96..526eda1 100644 --- a/main.c +++ b/main.c @@ -913,7 +913,7 @@ static void listobjects(void) static bool do_command(FILE *cmdin) /* Get and execute a command */ { - long verb, V1, V2; + long verb=0, V1, V2; long kmod, defn; static long igo = 0; static long obj = 0; @@ -950,7 +950,7 @@ static bool do_command(FILE *cmdin) for (;;) { if (game.loc == 0) croak(cmdin); - char* msg = locations[game.loc].description.small; + const char* msg = locations[game.loc].description.small; if (MOD(game.abbrev[game.loc],game.abbnum) == 0 || msg == 0) msg=locations[game.loc].description.big; if (!FORCED(game.loc) && DARK(game.loc)) {