Fixed a problem where only the x part was initialized.

This commit is contained in:
King_DuckZ 2014-03-20 11:42:24 +01:00
parent f0a38a2f8a
commit 85d57fd681

View file

@ -21,9 +21,10 @@ namespace cloonel {
///-------------------------------------------------------------------------
///-------------------------------------------------------------------------
template <typename T, uint32_t S>
Vector<T, S>::Vector (T parValue) :
m_mem {parValue}
{
Vector<T, S>::Vector (T parValue) {
for (int z = 0; z < S; ++z) {
m_mem[z] = parValue;
}
}
///-------------------------------------------------------------------------