stackable items fix

This commit is contained in:
Henrique 2011-08-30 21:22:02 -03:00
parent 2d61466263
commit 8ca0500712
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ void Item::onCountChange(int)
{
const ThingAttributes& attributes = g_dat.getItemAttributes(m_id);
if(attributes.stackable) {
if(attributes.stackable && attributes.xdiv == 4 && attributes.ydiv == 2) {
if(m_count < 5) {
m_xDiv = m_count-1;
m_yDiv = 0;