Bug fix -> String with one char + Directory and File on linux

Former-commit-id: 7f9b6c44197c3cc67145eb0a2d421a2e1de45a84
This commit is contained in:
Gawaboumga
2016-04-04 10:36:13 +02:00
parent 265e1c0fbd
commit 91f2bee487
8 changed files with 60 additions and 459 deletions

View File

@@ -1792,9 +1792,10 @@ namespace Nz
template<typename T>
bool Unserialize(SerializationContext& context, Matrix4<T>* matrix)
{
T* head = matrix->operator T*();
for (unsigned int i = 0; i < 16; ++i)
{
if (!Unserialize(context, &matrix[i]))
if (!Unserialize(context, head + i))
return false;
}