diff Engine/Graphics/BSPModel.cpp @ 2496:5abd8fc8f1c6

for ITEM_ARTIFACT_LADYS_ESCORT
author Ritor1
date Thu, 18 Sep 2014 17:38:54 +0600
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Engine/Graphics/BSPModel.cpp	Thu Sep 18 17:38:54 2014 +0600
@@ -0,0 +1,27 @@
+#define _CRTDBG_MAP_ALLOC
+#include <stdlib.h>
+#include <crtdbg.h>
+
+#define _CRT_SECURE_NO_WARNINGS
+#include <stdlib.h>
+
+#include "BSPModel.h"
+
+
+
+//----- (00478389) --------------------------------------------------------
+void BSPModel::Release()
+{
+  free(this->pVertices.pVertices);
+  this->pVertices.pVertices = 0;
+  free(this->pFaces);
+  this->pFaces = nullptr;
+  free(this->pFacesOrdering);
+  this->pFacesOrdering = nullptr;
+  free(this->pNodes);
+  this->pNodes = nullptr;
+  this->uNumNodes = 0;
+  this->uNumFaces = 0;
+  this->pVertices.uNumVertices = 0;
+  this->uNumConvexFaces = 0;
+}