Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cpp/src/core/radintrc.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,14 +266,14 @@ inline void radTInteraction::PushFrontNativeElemTransList(radTg3d* g3dPtr, radTl

inline void radTInteraction::EmptyVectOfPtrToListsOfTrans()
{
for(unsigned i=1; i<IntVectOfPtrToListsOfTransPtr.size(); i++)
for(unsigned i=0; i<IntVectOfPtrToListsOfTransPtr.size(); i++)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. I'll make more tests / debugging, and will probably merge this.

{
radTlphgPtr*& p_lphgPtr = IntVectOfPtrToListsOfTransPtr[i];
if(p_lphgPtr != 0) delete p_lphgPtr;
p_lphgPtr = 0;
}
IntVectOfPtrToListsOfTransPtr.erase(IntVectOfPtrToListsOfTransPtr.begin(), IntVectOfPtrToListsOfTransPtr.end());
for(unsigned k=1; k<ExtVectOfPtrToListsOfTransPtr.size(); k++)
for(unsigned k=0; k<ExtVectOfPtrToListsOfTransPtr.size(); k++)
{
radTlphgPtr*& p_lphgPtr = ExtVectOfPtrToListsOfTransPtr[k];
if(p_lphgPtr != 0) delete p_lphgPtr;
Expand Down