16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 11:09:19 +02:00

lua write error

This commit is contained in:
milek7
2018-03-21 20:06:26 +01:00
parent 479498cedc
commit 9b602686a2
4 changed files with 13 additions and 5 deletions

View File

@@ -70,7 +70,7 @@ std::string filename_scenery() {
void WriteLog( const char *str, logtype const Type ) {
if( str == nullptr ) { return; }
if( true == TestFlag( Global.DisabledLogTypes, Type ) ) { return; }
if( true == TestFlag( Global.DisabledLogTypes, (int)Type ) ) { return; }
if (Global.iWriteLogEnabled & 1) {
if( !output.is_open() ) {
@@ -106,7 +106,7 @@ void WriteLog( const char *str, logtype const Type ) {
void ErrorLog( const char *str, logtype const Type ) {
if( str == nullptr ) { return; }
if( true == TestFlag( Global.DisabledLogTypes, Type ) ) { return; }
if( true == TestFlag( Global.DisabledLogTypes, (int)Type ) ) { return; }
if (!errors.is_open()) {