Codechange: prevent suspicious pointer scaling

This commit is contained in:
Rubidium
2023-01-03 19:11:24 +01:00
committed by rubidium42
parent 170f37d07f
commit f7af9a299a
3 changed files with 6 additions and 5 deletions

View File

@@ -513,7 +513,7 @@ void RefTable::AllocNodes(SQUnsignedInteger size)
bucks[n] = nullptr;
temp->refs = 0;
new (&temp->obj) SQObjectPtr;
temp->next = temp+1;
temp->next = &temp[1];
temp++;
}
bucks[n] = nullptr;