implement BB item usage and mag feeding

This commit is contained in:
Martin Michelsen
2023-06-12 19:26:53 -07:00
parent 1a72f7c90a
commit 71ebf01b0b
15 changed files with 913 additions and 242 deletions
+1 -1
View File
@@ -271,7 +271,7 @@ struct parray {
if (offset + SubCount > Count) {
throw std::out_of_range("sub-array out of range");
}
return *reinterpret_cast<parray<ItemT, SubCount>*>(&this->items[offset]);
return *reinterpret_cast<const parray<ItemT, SubCount>*>(&this->items[offset]);
}
void assign_range(const ItemT* new_items, size_t count = Count, size_t start_offset = 0) {