diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index e6256b7a0..8754e2603 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -13886,7 +13886,7 @@ int32_t clipmove(vec3_t *pos, int16_t *sectnum, continue; rxi[0] = x1; - rxi[1] = y1; + ryi[0] = y1; get_floorspr_points(spr, 0, 0, &rxi[0], &rxi[1], &rxi[2], &rxi[3], &ryi[0], &ryi[1], &ryi[2], &ryi[3]); diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index 1cc97122d..113f70b92 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -9670,11 +9670,7 @@ static int32_t parseconsounds(scriptfile *script) } g_sounds[sndnum].filename = (char *)Xcalloc(slen+1,sizeof(uint8_t)); // Hopefully noone does memcpy(..., g_sounds[].filename, BMAX_PATH) - if (!g_sounds[sndnum].filename) - { - Bfree(definedname); - return -1; - } + Bmemcpy(g_sounds[sndnum].filename, filename, slen+1); if (scriptfile_getnumber(script, &ps)) goto BAD;