Skip to content

Commit

Permalink
Fix an issue with the Silo implementation (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
4z0t authored Nov 16, 2024
1 parent 85beeb2 commit 8ff7188
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion section/GiveNukeSiloAmmo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ void SiloAmmoSetBlocks()
asm(
"cmp %[Blocks], 0;"
"je Finish;"
"mov [ebx+0x48], eax;" //here we set the number of blocks. This value is used by Moho::CAiSiloBuildImpl::SiloTick for calculations
"cvtsi2ss xmm0, eax;" //here we set the number of blocks. This value is used by Moho::CAiSiloBuildImpl::SiloTick for calculations
"movss ds:[ebx+0x48], xmm0;"
"jmp 0x6CEDFA;"

//default code
Expand Down

0 comments on commit 8ff7188

Please sign in to comment.