1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-04-16 15:53:17 +00:00

rogueviz::ads:: in DS game, set resource to none to be safe

This commit is contained in:
Zeno Rogue 2025-02-10 19:02:09 +01:00
parent 9c9b37f2fb
commit bd2bc5a97a

View File

@ -22,7 +22,7 @@ struct rock_generator {
ads_object* add(transmatrix T) {
auto r = std::make_unique<ads_object> (oRock, nullptr, ads_matrix(T, cshift), 0xFFFFFFFF);
r->shape = &shape_disk;
r->shape = &shape_disk; r->resource = rtNone;
auto res = &*r;
rocks.emplace_back(std::move(r));
return res;