projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6c6c4f
)
Do not assert if count becomes larger than getStackMax() in InventoryItem::add()...
author
Perttu Ahola
<celeron55@gmail.com>
Wed, 30 Nov 2011 22:07:21 +0000
(
00:07
+0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Wed, 30 Nov 2011 22:07:21 +0000
(
00:07
+0200)
src/inventory.h
patch
|
blob
|
history
diff --git
a/src/inventory.h
b/src/inventory.h
index cee81a21e629f1cca77da69f36bc70437e96bacc..a303fa0de1ec77688333e8b29b88d5bff53a0c0e 100644
(file)
--- a/
src/inventory.h
+++ b/
src/inventory.h
@@
-95,7
+95,6
@@
public:
void add(u16 count)
{
- assert(m_count + count <= getStackMax());
m_count += count;
}
void remove(u16 count)