*/
-// LordHavoc: for some reason this is being #include'd rather than treated as its own file...
-// LordHavoc: adapted to not require stdint.h as this is not available on MSVC++, using unsigned char instead of uint8_t and fs_offset_t instead of int64_t.
+// LadyHavoc: for some reason this is being #include'd rather than treated as its own file...
+// LadyHavoc: adapted to not require stdint.h as this is not available on MSVC++, using unsigned char instead of uint8_t and fs_offset_t instead of int64_t.
// scaler type
#define LIBAVW_SCALER_BILINEAR 0
// allocate stream
s = (libavwstream_t *)Z_Malloc(sizeof(libavwstream_t));
- s->sndchan = -1;
- memset(s, 0, sizeof(libavwstream_t));
if (s == NULL)
{
*errorstring = "unable to allocate memory for stream info structure";
return NULL;
}
+ memset(s, 0, sizeof(libavwstream_t));
+ s->sndchan = -1;
// open file
s->file = FS_OpenVirtualFile(filename, true);