Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void *__thiscall _CPool_CVehicle__constructor(CPool *this, int maxCount, char *a3)
- {
- int i; // eax@1
- CPool *v4; // esi@1
- BYTE *v5; // edx@2
- BYTE *v6; // ecx@2
- v4 = this;
- this->objects = (void *)operator new(2584 * maxCount);
- v4->byteMap = (BYTE *)operator new(maxCount);
- i = 0;
- v4->initialized = 1;
- v4->size = maxCount;
- for ( v4->top = -1; i < maxCount; *v6 = (unsigned __int8)v5 )
- {
- v4->byteMap[i] |= 0x80; // set highest bit ON
- v5 = v4->byteMap;
- v6 = &v5[i];
- LOBYTE(v5) = v5[i++] & 0x80;
- }
- return v4;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement