Skip to content

Commit

Permalink
Merge branch 'hotfix/0.8.2.976'
Browse files Browse the repository at this point in the history
  • Loading branch information
rm-code committed Apr 13, 2017
2 parents 3ee60bd + be4caa2 commit c99e52c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# Version 0.8.2.976 - 2017-04-14

## Fixes
- Fixed crash when trying to drag an item stack in the inventory screen
- Fixed highlighting of equipment slots not being removed correctly




# Version 0.8.1.949 - 2017-04-09

## Fixes
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# On The Roadside

[![Version](https://img.shields.io/badge/Version-0.8.1.949-blue.svg)](https://github.com/rm-code/on-the-roadside/releases/latest)
[![Version](https://img.shields.io/badge/Version-0.8.2.976-blue.svg)](https://github.com/rm-code/on-the-roadside/releases/latest)
[![LOVE](https://img.shields.io/badge/L%C3%96VE-0.10.2-EA316E.svg)](http://love2d.org/)
[![Build Status](https://travis-ci.com/rm-code/On-The-Roadside.svg?token=q3rLXeyGTBN9VB2zsWMr&branch=develop)](https://travis-ci.com/rm-code/On-The-Roadside)

Expand Down
4 changes: 4 additions & 0 deletions src/inventory/ItemStack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ function ItemStack.new( id )
return t;
end

function self:isSameType( itemType, subType )
return items[#items]:isSameType( itemType, subType )
end

function self:getItem()
return items[#items];
end
Expand Down
4 changes: 1 addition & 3 deletions src/ui/inventory/UIEquipmentItem.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ function UIEquipmentItem.new( id, x, y, width, height, slot )
end

function self:highlight( nitem )
if nitem then
highlight = nitem:isSameType( slot:getItemType(), slot:getSubType() );
end
highlight = nitem and nitem:isSameType( slot:getItemType(), slot:getSubType() ) or false
end

function self:getSlot()
Expand Down
4 changes: 2 additions & 2 deletions version.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
local version = {
major = 0,
minor = 8,
patch = 1,
build = 949,
patch = 2,
build = 976,
}

return string.format( "%d.%d.%d.%d", version.major, version.minor, version.patch, version.build );

0 comments on commit c99e52c

Please sign in to comment.