Skip to content

Commit f78e1d9

Browse files
Merge pull request #251 from ThirteenAG/master
fwPool.h: fix GetJustIndex_NoFreeAssert
2 parents c9a625c + dc04968 commit f78e1d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin_IV/game_IV/rage/fwPool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ namespace rage {
8383
}
8484

8585
int32_t GetJustIndex_NoFreeAssert(const void* entry) {
86-
int index = ((uint8_t*)entry - m_aStorage);
86+
int index = (((uint8_t*)entry - m_aStorage) / m_nStorageSize);
8787
return index;
8888
}
8989

0 commit comments

Comments
 (0)