Commit dfa10c7f authored by Claes Sjofors's avatar Claes Sjofors

Wb attribute index bugfix for large arrays in large objects

parent 36b5dc94
...@@ -301,7 +301,7 @@ void wb_adrep::add( wb_adrep *ad, int idx) ...@@ -301,7 +301,7 @@ void wb_adrep::add( wb_adrep *ad, int idx)
m_isSubattr = true; m_isSubattr = true;
if ( ad->m_flags & PWR_MASK_ARRAY) if ( ad->m_flags & PWR_MASK_ARRAY)
m_offset += ad->m_offset + idx * ad->m_size / ad->m_elements; m_offset += ad->m_offset + idx * (ad->m_size / ad->m_elements);
else else
m_offset += ad->m_offset; m_offset += ad->m_offset;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment