2534 - Undo bug

An error pop after several undo during a blueprint creation:

develop-2534 (x64)
No matching overload found, candidates: Region3 translated(Region3 const&,Point3 const&)
stack traceback:
    [C]: ?
    [C]: in function 'translated'
    stonehearth/services/server/build/build_service.luac:130: in function '_subtract_region_from_floor'
    stonehearth/services/server/build/build_service.luac:91: in function '_add_floor_type'
    stonehearth/services/server/build/build_service.luac:81: in function 'add_floor'
    stonehearth/services/server/build/build_service.luac:50: in function 'cb'
    stonehearth/services/server/build/build_service.luac:295: in function 'do_command'
    stonehearth/services/server/build/build_service.luac:50: in function <stonehearth/services/server/build/

Steps to reproduce it:

  • Start a new game
  • Place your settlement
  • Open the building editor
  • Place a basement
  • Place walls
  • Place door and windows
  • Using slabs, create a few more rows on top of the walls
  • Click undo a few times (it will remove some of the slabs)
  • Try to drop a new slab in place of those being deleted by undo
3 Likes