mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2024-11-19 14:11:15 +00:00
Review debug_register_log
This commit is contained in:
parent
ffe90eef49
commit
3af2a49250
@ -56,7 +56,7 @@ void _debug_register_mono()
|
||||
// 0x4C6D18
|
||||
void _debug_register_log(const char* fileName, const char* mode)
|
||||
{
|
||||
if ((mode[0] == 'w' && mode[1] == 'a') && mode[1] == 't') {
|
||||
if ((mode[0] == 'w' || mode[0] == 'a') && mode[1] == 't') {
|
||||
if (_fd != NULL) {
|
||||
fclose(_fd);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user