Skip to content

Commit 4e4b731

Browse files
authored
fix(debug): Fix copypasta in Debug.cpp (#1380)
1 parent 7dd14c7 commit 4e4b731

File tree

2 files changed

+2
-2
lines changed
  • GeneralsMD/Code/GameEngine/Source/Common/System
  • Generals/Code/GameEngine/Source/Common/System

2 files changed

+2
-2
lines changed

Generals/Code/GameEngine/Source/Common/System/Debug.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ void DebugInit(int flags)
396396
strcat(theLogFileName, DEBUG_FILE_NAME);
397397
if (rts::ClientInstance::getInstanceId() > 1u)
398398
{
399-
size_t offset = strlen(theLogFileNamePrev);
399+
size_t offset = strlen(theLogFileName);
400400
snprintf(theLogFileName + offset, ARRAY_SIZE(theLogFileName) - offset, "_Instance%.2u", rts::ClientInstance::getInstanceId());
401401
}
402402
strcat(theLogFileName, ".txt");

GeneralsMD/Code/GameEngine/Source/Common/System/Debug.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ void DebugInit(int flags)
397397
strcat(theLogFileName, DEBUG_FILE_NAME);
398398
if (rts::ClientInstance::getInstanceId() > 1u)
399399
{
400-
size_t offset = strlen(theLogFileNamePrev);
400+
size_t offset = strlen(theLogFileName);
401401
snprintf(theLogFileName + offset, ARRAY_SIZE(theLogFileName) - offset, "_Instance%.2u", rts::ClientInstance::getInstanceId());
402402
}
403403
strcat(theLogFileName, ".txt");

0 commit comments

Comments
 (0)