Revert "Project modernization (#630)"
This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.
This reverts commit a9be52c41a.
This commit is contained in:
@@ -33,7 +33,7 @@ int WoodSlabTile::getResource(int data, Random *random, int playerBonusLevel)
|
||||
|
||||
shared_ptr<ItemInstance> WoodSlabTile::getSilkTouchItemInstance(int data)
|
||||
{
|
||||
return std::make_shared<ItemInstance>(Tile::woodSlabHalf, 2, data & TYPE_MASK);
|
||||
return shared_ptr<ItemInstance>(new ItemInstance(Tile::woodSlabHalf, 2, data & TYPE_MASK));
|
||||
}
|
||||
|
||||
int WoodSlabTile::getAuxName(int auxValue)
|
||||
|
||||
Reference in New Issue
Block a user