Browse Source

Fixed the ArrayList copy constructor

release/0.19
JustinAJ 9 years ago
parent
commit
87ca784d1e
  1. 2
      Jupiter/ArrayList.h
  2. BIN
      Release/Jupiter.lib

2
Jupiter/ArrayList.h

@ -146,7 +146,7 @@ template<typename T> Jupiter::ArrayList<T>::ArrayList(const Jupiter::ArrayList<T
Jupiter::ArrayList<T>::dataSize = source.dataSize;
Jupiter::ArrayList<T>::data = new T*[Jupiter::ArrayList<T>::dataSize];
Jupiter::List<T>::length = 0;
while (Jupiter::List<T>::length != Jupiter::List<T>::length)
while (Jupiter::List<T>::length != source.length)
{
Jupiter::ArrayList<T>::data[Jupiter::List<T>::length] = source.data[Jupiter::List<T>::length];
++Jupiter::List<T>::length;

BIN
Release/Jupiter.lib

Binary file not shown.
Loading…
Cancel
Save