optimize test generator
This commit is contained in:
@@ -56,7 +56,7 @@ namespace lua {
|
||||
return TYPENAME;
|
||||
}
|
||||
|
||||
std::shared_ptr<Heightmap> getHeightmap() const {
|
||||
const std::shared_ptr<Heightmap>& getHeightmap() const {
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
@@ -87,7 +87,6 @@ public:
|
||||
for (int i = biomeParameters-1; i >= 0; i--) {
|
||||
maps.push_back(
|
||||
lua::touserdata<lua::LuaHeightmap>(L, -1-i)->getHeightmap());
|
||||
|
||||
}
|
||||
lua::pop(L, 1+biomeParameters);
|
||||
return maps;
|
||||
|
||||
Reference in New Issue
Block a user