Non-trivial copiable object fixes, limited to the engine's itself
not the third parties parts.
This commit is contained in:
@@ -25,7 +25,7 @@ struct frustum {
|
||||
}
|
||||
|
||||
void operator=(const frustum& other) {
|
||||
memcpy(this, &other, sizeof(frustum));
|
||||
memcpy(reinterpret_cast<void *>(this), &other, sizeof(frustum));
|
||||
}
|
||||
|
||||
bool overlaps(const vec3d& center, double radius) const {
|
||||
@@ -34,4 +34,4 @@ struct frustum {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user