]> git.localhorst.tv Git - space.git/commitdiff
fix Resource include
authorDaniel Karbach <dk@mymk.de>
Tue, 7 Jan 2014 14:27:42 +0000 (15:27 +0100)
committerDaniel Karbach <dk@mymk.de>
Tue, 7 Jan 2014 14:27:42 +0000 (15:27 +0100)
sorry

src/world/Universe.cpp
src/world/Universe.h

index 0866af32f600c12581deed44c9e2dc4190872d5a..daac4dbf8fa9099d22be8149de14ea3d79875fb6 100644 (file)
@@ -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();
 }
 
 
index 5b3fccaf51dd896535ab35b232caec2b83615e45..807c1cd18fe16444f214abe749afcf601ac587ea 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef SPACE_UNIVERSE_H_
 #define SPACE_UNIVERSE_H_
 
+#include "Resource.h"
 #include "../entity/Ship.h"
 #include "../graphics/Vector.h"