Skip to content
Open
Show file tree
Hide file tree
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 UnionProject/GothicAPI/Gothic_II_Addon/API/zContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ namespace Gothic_II_Addon {
numAlloc = startSize;
array = 0;
if( startSize > 0 )
array = new T()[startSize];
array = new T[startSize]);
SetCompare( zArraySortDefaultCompare );
}

Expand Down Expand Up @@ -337,7 +337,7 @@ namespace Gothic_II_Addon {
return;
}
if( numAlloc > numInArray ) {
T* newArray = new T()[numInArray];
T* newArray = new T[numInArray];
for( int i = 0; i < numInArray; i++ )
newArray[i] = array[i];
delete[] array;
Expand Down
4 changes: 2 additions & 2 deletions UnionProject/GothicAPI/Gothic_II_Classic/API/zContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ namespace Gothic_II_Classic {
numAlloc = startSize;
array = 0;
if( startSize > 0 )
array = new T()[startSize];
array = new T[startSize];
SetCompare( zArraySortDefaultCompare );
}

Expand Down Expand Up @@ -337,7 +337,7 @@ namespace Gothic_II_Classic {
return;
}
if( numAlloc > numInArray ) {
T* newArray = new T()[numInArray];
T* newArray = new T[numInArray];
for( int i = 0; i < numInArray; i++ )
newArray[i] = array[i];
delete[] array;
Expand Down
4 changes: 2 additions & 2 deletions UnionProject/GothicAPI/Gothic_I_Addon/API/zContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ namespace Gothic_I_Addon {
numAlloc = startSize;
array = 0;
if( startSize > 0 )
array = new T()[startSize];
array = new T[startSize];
SetCompare( zArraySortDefaultCompare );
}

Expand Down Expand Up @@ -338,7 +338,7 @@ namespace Gothic_I_Addon {
return;
}
if( numAlloc > numInArray ) {
T* newArray = new T()[numInArray];
T* newArray = new T[numInArray];
for( int i = 0; i < numInArray; i++ )
newArray[i] = array[i];
delete[] array;
Expand Down
4 changes: 2 additions & 2 deletions UnionProject/GothicAPI/Gothic_I_Classic/API/zContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ namespace Gothic_I_Classic {
numAlloc = startSize;
array = 0;
if( startSize > 0 )
array = new T()[startSize];
array = new T[startSize];
SetCompare( zArraySortDefaultCompare );
}

Expand Down Expand Up @@ -338,7 +338,7 @@ namespace Gothic_I_Classic {
return;
}
if( numAlloc > numInArray ) {
T* newArray = new T()[numInArray];
T* newArray = new T[numInArray];
for( int i = 0; i < numInArray; i++ )
newArray[i] = array[i];
delete[] array;
Expand Down