Skip to content

Mistake in countSurroundingWaterTiles? #1030

@AaronVanGeffen

Description

@AaronVanGeffen

Version information:

  • Platform: Linux
  • Version: 21.05+
  • Build/commit: e9fd958

Describe the bug

* thread #1, name = 'openloco', stop reason = signal SIGABRT
  * frame #0: 0xf7fcb549 [vdso]`__kernel_vsyscall + 9
    frame #1: 0xf78b86e8 libc.so.6`raise + 200
    frame #2: 0xf78a1407 libc.so.6`abort + 290
    frame #3: 0xf7be091c libstdc++.so.6`__gnu_cxx::__verbose_terminate_handler() (.cold) at vterminate.cc:95:10
    frame #4: 0xf7bee627 libstdc++.so.6`__cxxabiv1::__terminate(void (*)()) at eh_terminate.cc:48:15
    frame #5: 0xf7bee6b3 libstdc++.so.6`std::terminate() at eh_terminate.cc:58:15
    frame #6: 0xf7bee9e5 libstdc++.so.6`__cxxabiv1::__cxa_throw(obj=0x02efb2d0, tinfo=0xf7d70f94, dest=(libstdc++.so.6`std::out_of_range::~out_of_range() at stdexcept.cc:65:3))(void *)) at eh_throw.cc:95:18
    frame #7: 0x011cfa90 openloco`OpenLoco::Interop::loco_global<OpenLoco::Map::TileElement* [196612], 14942516u>::operator[](this=0x0144bb9c, idx=-5) at Interop.hpp:319:17
    frame #8: 0x011cda87 openloco`OpenLoco::Map::TileManager::get(pos=(x = -5, y = 212))32>) at TileManager.cpp:73:33
    frame #9: 0x011cef55 openloco`OpenLoco::Map::TileManager::countSurroundingWaterTiles(pos=0xffffd138)1> const&) at TileManager.cpp:564:32
    frame #10: 0x011cf36f openloco`operator(__closure=0x00000000, regs=0x0144b9d4) at TileManager.cpp:626:53
    frame #11: 0x011cf3c2 openloco`_FUN((null)=0x0144b9d4) at TileManager.cpp:628:13
    frame #12: 0xf7fa1cd1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-vanillaA problem or bug in vanilla

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions