projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5449f78
)
fixed warning for missing level template when loading level
author
Holger Schemel
<info@artsoft.org>
Fri, 17 Aug 2018 13:11:19 +0000
(15:11 +0200)
committer
Holger Schemel
<info@artsoft.org>
Fri, 17 Aug 2018 13:11:27 +0000
(15:11 +0200)
src/files.c
patch
|
blob
|
history
diff --git
a/src/files.c
b/src/files.c
index 151c8079966f31384daa580d6a82119bb04267b6..37864e0d6a274679d0c6710bfa34c7f922fd9303 100644
(file)
--- a/
src/files.c
+++ b/
src/files.c
@@
-6582,6
+6582,13
@@
void LoadLevelTemplate(int nr)
{
char *filename;
+ if (!fileExists(getGlobalLevelTemplateFilename()))
+ {
+ Error(ERR_WARN, "no level template found for this level");
+
+ return;
+ }
+
setLevelFileInfo(&level_template.file_info, nr);
filename = level_template.file_info.filename;