mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
add const accessor to Inventory
This commit is contained in:
@@ -378,6 +378,10 @@ unsigned int Inventory::size( ) const {
|
||||
return inv.size( );
|
||||
}
|
||||
|
||||
auto Inventory::get() const -> const std::vector<OBJECTTYPE>& {
|
||||
return inv;
|
||||
}
|
||||
|
||||
// Assignment operator
|
||||
Inventory& Inventory::operator=(const Inventory& src)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user