1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-02-20 13:54:14 +01:00

I'm tired :)

--HG--
branch : hookman_autogen
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/branches/hookman_autogen%40580
This commit is contained in:
Pavol Marko 2007-11-25 01:22:41 +00:00
parent c45df0a90b
commit 1aa8c8572d

View File

@ -66,11 +66,11 @@ namespace SourceHook
alignBytes %= minAlignment;
neededSize += alignBytes;
if (gap_end - gap_begin >= neededSize)
if (gapsize >= neededSize)
{
if (gap_end - gap_begin < smallestgap_size)
if (gapsize < smallestgap_size)
{
smallestgap_size = gap_end - gap_begin;
smallestgap_size = gapsize;
smallestgap_pos = gap_begin;
outAlignBytes = alignBytes;
}