fixed this - of course, offset needs to be incremented (Set/GetEntDataArray)
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40832
This commit is contained in:
parent
48cf71877b
commit
9549136e06
@ -692,6 +692,7 @@ stock GetEntDataArray(entity, offset, value, array[], arraySize, dataSize=4)
|
||||
for (new i=0; i<arraySize; i++)
|
||||
{
|
||||
array[i] = GetEntData(entity, offset, dataSize)
|
||||
offset += dataSize;
|
||||
}
|
||||
}
|
||||
|
||||
@ -712,6 +713,7 @@ stock SetEntDataArray(entity, offset, value, const array[], arraySize, dataSize=
|
||||
{
|
||||
for (new i=0; i<arraySize; i++)
|
||||
{
|
||||
SetEntData(entity, offset, array[i], dataSize, changeState)
|
||||
SetEntData(entity, real_offset, array[i], dataSize, changeState);
|
||||
offset += dataSize;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user