Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions plugin_vc/game_vc/CStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,9 @@ void CStats::LoadStats(unsigned char* bufferPointer, unsigned int structSize)
}

// Converted from static void __cdecl CStats::ConstructStatLine(int a1) 0x4CB085
void CStats::ConstructStatLine(int a1)
// Updated to int - as there is a specific line in PrintStatBox function which
// expects a return value of row number by passing 99999
int CStats::ConstructStatLine(int a1)
{
((void (__cdecl *)(int))0x4CB085)(a1);
return ((int (__cdecl *)(int))0x4CB085)(a1);
}
2 changes: 1 addition & 1 deletion plugin_vc/game_vc/CStats.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,5 @@ class CStats
static void BuildStatLine(char* a1, void* a2, int a3, void* a4, int a5);
static void SaveStats(unsigned char* bufferPointer, unsigned int* structSize);
static void LoadStats(unsigned char* bufferPointer, unsigned int structSize);
static void ConstructStatLine(int a1);
static int ConstructStatLine(int a1);
};