aboutsummaryrefslogtreecommitdiff
path: root/sky/sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sky/sound.cpp')
-rw-r--r--sky/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sky/sound.cpp b/sky/sound.cpp
index 8df04d4243..80b0b8ce0c 100644
--- a/sky/sound.cpp
+++ b/sky/sound.cpp
@@ -1223,8 +1223,8 @@ bool SkySound::startSpeech(uint16 textNum) {
return false;
}
- uint32 speechSize = ((dataFileHeader*)speechData)->s_tot_size;
- uint8 *playBuffer = (uint8*)malloc(speechSize);
+ uint32 speechSize = ((dataFileHeader *)speechData)->s_tot_size;
+ uint8 *playBuffer = (uint8 *)malloc(speechSize);
memcpy(playBuffer, speechData + sizeof(dataFileHeader), speechSize);
free(speechData);