mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 17:22:57 +00:00
fixed segfault in make_translation
This commit is contained in:
parent
8a8b84b4da
commit
336aaeb746
@ -90,6 +90,7 @@ void internal_preprocess_file(const std::string& fname,
|
||||
int depth, std::vector<char>& res,
|
||||
std::vector<line_source>* lines_src, int& line)
|
||||
{
|
||||
log_scope("internal preprocess");
|
||||
//if it's a directory, we process all files in the directory
|
||||
//that end in .cfg
|
||||
if(is_directory(fname)) {
|
||||
@ -275,7 +276,7 @@ std::string preprocess_file(const std::string& fname,
|
||||
{
|
||||
log_scope("preprocessing file...");
|
||||
std::map<std::string,std::string> defines_copy;
|
||||
if(defines == NULL)
|
||||
if(defines != NULL)
|
||||
defines_copy = *defines;
|
||||
|
||||
std::vector<char> res;
|
||||
|
Loading…
x
Reference in New Issue
Block a user