optimize test generator

This commit is contained in:
MihailRis
2024-09-23 23:35:39 +03:00
parent 9dd4e9640d
commit 519ebc05f1
3 changed files with 7 additions and 11 deletions
+1 -1
View File
@@ -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;