diff --git a/src/d_netcmd.c b/src/d_netcmd.c index f2979838..0a691d28 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -2098,7 +2098,7 @@ void D_SetupVote(void) else m = G_RandMap(G_TOLFlag(gametype), prevmap, false, 0, true, votebuffer); if (i < 3) - votebuffer[i] = m; + votebuffer[min(i, 2)] = m; // min() is a dumb workaround for gcc 4.4 array-bounds error WRITEUINT16(p, m); } diff --git a/src/dehacked.c b/src/dehacked.c index ccb25810..3aba7aef 100644 --- a/src/dehacked.c +++ b/src/dehacked.c @@ -3234,9 +3234,9 @@ static void readwipes(MYFILE *f) else if (fastcmp(pword, "FINAL")) wipeoffset = wipe_specinter_final; } - else if (fastncmp(word, "VOTING_", 10)) + else if (fastncmp(word, "VOTING_", 7)) { - pword = word + 10; + pword = word + 7; if (fastcmp(pword, "TOBLACK")) wipeoffset = wipe_specinter_toblack; else if (fastcmp(pword, "FINAL")) @@ -6934,7 +6934,7 @@ static const char *const STATE_LIST[] = { // array length left dynamic for sanit "S_GARU1", "S_GARU2", "S_GARU3", - "S_TGARU", + "S_TGARU", "S_TGARU1", "S_TGARU2", "S_TGARU3", // Wind attack used by Roaming Shadows on Players.