From 758c644d7d32c2abe88269fcba99e142990f1411 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Tue, 7 Jan 2014 15:27:42 +0100 Subject: [PATCH] fix Resource include sorry --- src/world/Universe.cpp | 2 +- src/world/Universe.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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" -- 2.39.2