mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-25 00:07:10 +00:00
rogueviz::ads:: in DS game, set resource to none to be safe
This commit is contained in:
1 parent
9c9b37f2fb
commit
bd2bc5a97a
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user