projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rocksndiamonds-3.0.8
[rocksndiamonds.git]
/
src
/
game.c
diff --git
a/src/game.c
b/src/game.c
index 455599f51cf88d923d8d76a8fce8dc9b71f690eb..05e65026508d942835b1e28bd9c464b7fa2d2e8c 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-8918,13
+8918,10
@@
void InitPlayLevelSound()
{
int num_sounds = getSoundListSize();
{
int num_sounds = getSoundListSize();
- if (loop_sound_frame != NULL)
-
free(loop_sound_fra
me);
+ checked_free(loop_sound_frame);
+
checked_free(loop_sound_volu
me);
- if (loop_sound_volume != NULL)
- free(loop_sound_volume);
-
- loop_sound_frame = checked_calloc(num_sounds * sizeof(int));
+ loop_sound_frame = checked_calloc(num_sounds * sizeof(int));
loop_sound_volume = checked_calloc(num_sounds * sizeof(int));
}
loop_sound_volume = checked_calloc(num_sounds * sizeof(int));
}