From 788a6dd434cce53e05b33d77ca16a7775342c782 Mon Sep 17 00:00:00 2001
From: Shon Ferguson <shonferg@users.sourceforge.net>
Date: Sat, 3 Jun 2006 20:30:27 +0000
Subject: [PATCH] Fixed a bug in Ref. Added new files to VS project.

---
 Ref.h         |  2 +-
 niflib.vcproj | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/Ref.h b/Ref.h
index 34eb4067..88a0ccd3 100644
--- a/Ref.h
+++ b/Ref.h
@@ -64,7 +64,7 @@ Ref<T>::operator T*() const {
 
 template <class T>
 T& Ref<T>::operator*() const {
-	return _object;
+	return *_object;
 }
 
 template <class T>
diff --git a/niflib.vcproj b/niflib.vcproj
index b1bb6f46..58512338 100644
--- a/niflib.vcproj
+++ b/niflib.vcproj
@@ -825,6 +825,9 @@
 				<File
 					RelativePath=".\gen\hkTriangle.cpp">
 				</File>
+				<File
+					RelativePath=".\gen\LimitedHingeDescriptor.cpp">
+				</File>
 				<File
 					RelativePath=".\gen\LODRange.cpp">
 				</File>
@@ -849,6 +852,9 @@
 				<File
 					RelativePath=".\gen\QuaternionXYZW.cpp">
 				</File>
+				<File
+					RelativePath=".\gen\RagDollDescriptor.cpp">
+				</File>
 				<File
 					RelativePath=".\gen\ShaderTexDesc.cpp">
 				</File>
@@ -1579,6 +1585,9 @@
 				<File
 					RelativePath=".\gen\KeyGroup.h">
 				</File>
+				<File
+					RelativePath=".\gen\LimitedHingeDescriptor.h">
+				</File>
 				<File
 					RelativePath=".\gen\LODRange.h">
 				</File>
@@ -1603,6 +1612,9 @@
 				<File
 					RelativePath=".\gen\QuaternionXYZW.h">
 				</File>
+				<File
+					RelativePath=".\gen\RagDollDescriptor.h">
+				</File>
 				<File
 					RelativePath=".\gen\RotationKeyArray.h">
 				</File>
-- 
GitLab