X-Git-Url: http://git.localhorst.tv/?p=space.git;a=blobdiff_plain;f=src%2Fworld%2FUniverse.cpp;fp=src%2Fworld%2FUniverse.cpp;h=daac4dbf8fa9099d22be8149de14ea3d79875fb6;hp=0866af32f600c12581deed44c9e2dc4190872d5a;hb=758c644d7d32c2abe88269fcba99e142990f1411;hpb=7bf949b332c410c6909fe80d9fc0ba2200f4ef19 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(); }