From: Daniel Karbach <dk@mymk.de>
Date: Tue, 7 Jan 2014 14:27:42 +0000 (+0100)
Subject: fix Resource include
X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=758c644d7d32c2abe88269fcba99e142990f1411;p=space.git

fix Resource include

sorry
---

diff --git a/src/world/Universe.cpp b/src/world/Universe.cpp
index 0866af3..daac4db 100644
--- a/src/world/Universe.cpp
+++ b/src/world/Universe.cpp
@@ -26,7 +26,7 @@ Ship *Universe::AddShip(const Ship &s) {
 int Universe::AddResource(const Resource &r) {
 	resources.emplace_back(r);
 	resources.back().id = resources.size();
-	return resources.back();
+	return resources.size();
 }
 
 
diff --git a/src/world/Universe.h b/src/world/Universe.h
index 5b3fcca..807c1cd 100644
--- a/src/world/Universe.h
+++ b/src/world/Universe.h
@@ -1,6 +1,7 @@
 #ifndef SPACE_UNIVERSE_H_
 #define SPACE_UNIVERSE_H_
 
+#include "Resource.h"
 #include "../entity/Ship.h"
 #include "../graphics/Vector.h"