mirror of
https://github.com/glest/glest-source.git
synced 2025-08-12 11:24:00 +02:00
- updated code to protect against null pointers and uninitialized values and threading issues
This commit is contained in:
@@ -166,6 +166,9 @@ public:
|
||||
if(result != NULL) {
|
||||
return *result;
|
||||
}
|
||||
else if(SystemFlags::debugLogFileList == NULL) {
|
||||
throw std::exception("unknown return value for SystemFlagsType!");
|
||||
}
|
||||
}
|
||||
|
||||
return (*debugLogFileList)[type];
|
||||
|
Reference in New Issue
Block a user