summaryrefslogtreecommitdiffstats
path: root/src/FileLoader.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-28 19:23:28 +0200
committeraap <aap@papnet.eu>2019-06-28 19:23:28 +0200
commit48cf8b6629da53443be6b1580ee15ad768c53370 (patch)
treed6bdeb18130b49096a995789840faf382f68f7ee /src/FileLoader.cpp
parentMerge pull request #67 from gennariarmando/master (diff)
downloadre3-48cf8b6629da53443be6b1580ee15ad768c53370.tar
re3-48cf8b6629da53443be6b1580ee15ad768c53370.tar.gz
re3-48cf8b6629da53443be6b1580ee15ad768c53370.tar.bz2
re3-48cf8b6629da53443be6b1580ee15ad768c53370.tar.lz
re3-48cf8b6629da53443be6b1580ee15ad768c53370.tar.xz
re3-48cf8b6629da53443be6b1580ee15ad768c53370.tar.zst
re3-48cf8b6629da53443be6b1580ee15ad768c53370.zip
Diffstat (limited to '')
-rw-r--r--src/FileLoader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FileLoader.cpp b/src/FileLoader.cpp
index dd58614d..8213a5c7 100644
--- a/src/FileLoader.cpp
+++ b/src/FileLoader.cpp
@@ -46,7 +46,7 @@ CFileLoader::LoadLevel(const char *filename)
{
int fd;
RwTexDictionary *savedTxd;
- int savedLevel;
+ eLevelName savedLevel;
bool objectsLoaded;
char *line;
char txdname[64];
@@ -79,7 +79,7 @@ CFileLoader::LoadLevel(const char *filename)
}else if(strncmp(line, "COLFILE", 7) == 0){
int level;
sscanf(line+8, "%d", &level);
- CGame::currLevel = level;
+ CGame::currLevel = (eLevelName)level;
LoadingScreenLoadingFile(line+10);
LoadCollisionFile(line+10);
CGame::currLevel = savedLevel;