Core/Vmaps: Fix inconsistency of hitInstance and hitModel to cause wrong area ids (#28632)

Closes #28326

Co-authored-by: Gosha <284210+Lordron@users.noreply.github.com>
This commit is contained in:
ModoXandGosha authored and Ovahlord committed 2022-12-31 15:37:13 +01:00
1 parent ad0a3ecad9
commit 8a7dfbbd1d
4 files changed
+14 -3

No files matched your search

+6
View File
@@ -31,6 +31,12 @@ namespace VMAP
enum class LoadResult : uint8;
enum class ModelIgnoreFlags : uint32;
struct GroupLocationInfo
{
const GroupModel* hitModel = nullptr;
int32 rootId = -1;
};
struct TC_COMMON_API LocationInfo
{
LocationInfo(): rootId(-1), hitInstance(nullptr), hitModel(nullptr), ground_Z(-G3D::finf()) { }