diff --git a/src/resourcefiles/file_directory.cpp b/src/resourcefiles/file_directory.cpp index 1f2d63d183..54cb1e7a6a 100644 --- a/src/resourcefiles/file_directory.cpp +++ b/src/resourcefiles/file_directory.cpp @@ -195,7 +195,7 @@ int FDirectory::AddDirectory(const char *dirpath) return 0; } - const size_t namepos = strlen(Filename); + const size_t namepos = strlen(FileName); FString pathfix; while ((ent = fts_read(fts)) != NULL) diff --git a/src/sc_man.h b/src/sc_man.h index 57ab6ec52e..c76fb724f7 100644 --- a/src/sc_man.h +++ b/src/sc_man.h @@ -21,7 +21,7 @@ public: void Open(const char *lumpname); bool OpenFile(const char *filename); void OpenMem(const char *name, const char *buffer, int size); - void OpenMem(const char *name, TArray &buffer) + void OpenMem(const char *name, const TArray &buffer) { OpenMem(name, (const char*)buffer.Data(), buffer.Size()); }