Loading

Assert fails on some tile

  1. static void BuildPathAtTile(int xpos, int ypos, int zpos, TileEdge edge, PathType path_type, uint8 path_spr)
  2. {
  3.     VoxelStack *avs = _additions.GetModifyStack(xpos, ypos);
  4.  
  5.     Voxel *av = avs->GetCreate(zpos, true);
  6.     av->SetInstance(SRI_PATH);
  7.     VoxelStack *avs_origin = _additions.GetModifyStack(xpos + _tile_dxy[edge].x, xpos + _tile_dxy[edge].y);
  8.     assert(avs != avs_origin);

Comments