Frogot to increment variable after pushing to stack
This commit is contained in:
parent
18d1e9daa1
commit
f13ad26dfc
@ -111,6 +111,8 @@ namespace Components
|
|||||||
|
|
||||||
void Logger::NetworkLog(const char* data, bool gLog)
|
void Logger::NetworkLog(const char* data, bool gLog)
|
||||||
{
|
{
|
||||||
|
if (!data) return;
|
||||||
|
|
||||||
std::string buffer(data);
|
std::string buffer(data);
|
||||||
for (auto& addr : Logger::LoggingAddresses[gLog & 1])
|
for (auto& addr : Logger::LoggingAddresses[gLog & 1])
|
||||||
{
|
{
|
||||||
@ -123,7 +125,7 @@ namespace Components
|
|||||||
__asm
|
__asm
|
||||||
{
|
{
|
||||||
push 1
|
push 1
|
||||||
push[esp + 4h]
|
push [esp + 8h]
|
||||||
call Logger::NetworkLog
|
call Logger::NetworkLog
|
||||||
add esp, 8h
|
add esp, 8h
|
||||||
|
|
||||||
@ -147,7 +149,7 @@ namespace Components
|
|||||||
|
|
||||||
returnPrint:
|
returnPrint:
|
||||||
push 0
|
push 0
|
||||||
push [esp + 8h]
|
push [esp + 0Ch]
|
||||||
call Logger::NetworkLog
|
call Logger::NetworkLog
|
||||||
add esp, 8h
|
add esp, 8h
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user