summaryrefslogtreecommitdiff
path: root/src/i_sdlsound.c
diff options
context:
space:
mode:
authorSimon Howard2009-09-06 18:15:52 +0000
committerSimon Howard2009-09-06 18:15:52 +0000
commit0de7210f96259b4bc6850d4119e8069e31c4a14c (patch)
tree618bb0fd6d6d1d6787f68cfc9f40142459a684fa /src/i_sdlsound.c
parentec81c27ef5af20761afb2295cdd7c92b213a5807 (diff)
downloadchocolate-doom-0de7210f96259b4bc6850d4119e8069e31c4a14c.tar.gz
chocolate-doom-0de7210f96259b4bc6850d4119e8069e31c4a14c.tar.bz2
chocolate-doom-0de7210f96259b4bc6850d4119e8069e31c4a14c.zip
Fixes for MSVC compile (thanks entryway).
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1657
Diffstat (limited to 'src/i_sdlsound.c')
-rw-r--r--src/i_sdlsound.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/i_sdlsound.c b/src/i_sdlsound.c
index bb8229e4..ea5c92a5 100644
--- a/src/i_sdlsound.c
+++ b/src/i_sdlsound.c
@@ -275,12 +275,15 @@ static boolean LoadSoundLump(int sound,
uint32_t *length,
byte **data_ref)
{
+ int lumplen;
+ byte *data;
+
// Load the sound
*lumpnum = S_sfx[sound].lumpnum;
*data_ref = W_CacheLumpNum(*lumpnum, PU_STATIC);
- int lumplen = W_LumpLength(*lumpnum);
- byte *data = *data_ref;
+ lumplen = W_LumpLength(*lumpnum);
+ data = *data_ref;
// Ensure this is a valid sound