projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a42096
)
fixed missing initialization when loading envelope level chunks
author
Holger Schemel
<info@artsoft.org>
Fri, 28 Aug 2015 19:21:43 +0000
(21:21 +0200)
committer
Holger Schemel
<info@artsoft.org>
Fri, 28 Aug 2015 19:21:43 +0000
(21:21 +0200)
src/files.c
patch
|
blob
|
history
diff --git
a/src/files.c
b/src/files.c
index 9704cdfd5b294f1a7296522fac3ca6e9f8b6f999..beda7425a6c4da570e0caa59417fc247fe5f5031 100644
(file)
--- a/
src/files.c
+++ b/
src/files.c
@@
-3007,6
+3007,8
@@
static int LoadLevel_NOTE(File *file, int chunk_size, struct LevelInfo *level)
int envelope_nr = element - EL_ENVELOPE_1;
int real_chunk_size = 2;
+ xx_envelope = level->envelope[envelope_nr]; /* copy into temporary buffer */
+
while (!checkEndOfFile(file))
{
real_chunk_size += LoadLevel_MicroChunk(file, chunk_config_NOTE,
@@
-3016,7
+3018,7
@@
static int LoadLevel_NOTE(File *file, int chunk_size, struct LevelInfo *level)
break;
}
- level->envelope[envelope_nr] = xx_envelope;
+ level->envelope[envelope_nr] = xx_envelope;
/* copy from temporary buffer */
return real_chunk_size;
}