parent
bf36103c11
commit
09c71487be
src/ScriptResolving/AngelScript/ByteCodeHandling
|
@ -32,7 +32,7 @@ public:
|
|||
_out = (uint8_t*)newLoc;
|
||||
}
|
||||
auto start = reinterpret_cast<const uint8_t*>(ptr);
|
||||
for (auto index = 0; index < size; index++) {
|
||||
for (asUINT index = 0; index < size; index++) {
|
||||
_out[initialSize + index] = *(start + index);
|
||||
}
|
||||
_size += size;
|
||||
|
@ -46,7 +46,7 @@ public:
|
|||
if (_index + toRead > _size) {
|
||||
toRead = _size - _index;
|
||||
}
|
||||
for (auto index = 0; index < toRead; index++) {
|
||||
for (asUINT index = 0; index < toRead; index++) {
|
||||
*(start + index) = _out[_index + index];
|
||||
}
|
||||
_index += toRead;
|
||||
|
|
Loading…
Reference in New Issue