Skip to content

Commit

Permalink
fix: bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
luan committed Oct 8, 2023
1 parent e51724d commit 974919c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions source/action.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@ struct WaypointData {
};

class Change {
private:
ChangeType type;
void* data;

public:
Change(Tile* tile);
~Change();

Expand All @@ -83,6 +80,7 @@ class Change {
uint32_t memsize() const;

private:
Change();
ChangeType type;
void* data;

Expand Down
6 changes: 3 additions & 3 deletions source/iomap_otbm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ void Item::serializeItemAttributes_OTBM(const IOMap& maphandle, NodeFileWriteHan

void Item::serializeItemCompact_OTBM(const IOMap& maphandle, NodeFileWriteHandle& stream) const
{
stream.addU16(g_items[id].clientID);
stream.addU16(id);

/* This is impossible
const ItemType& iType = g_items[id];
Expand All @@ -230,7 +230,7 @@ void Item::serializeItemCompact_OTBM(const IOMap& maphandle, NodeFileWriteHandle
bool Item::serializeItemNode_OTBM(const IOMap& maphandle, NodeFileWriteHandle& file) const
{
file.addNode(OTBM_ITEM);
file.addU16(g_items[id].clientID);
file.addU16(id);
if(maphandle.version.otbm == MAP_OTBM_1) {
const ItemType& type = g_items.getItemType(id);
if(type.stackable || type.isSplash() || type.isFluidContainer()) {
Expand Down Expand Up @@ -362,7 +362,7 @@ bool Container::unserializeItemNode_OTBM(const IOMap& maphandle, BinaryNode* nod
bool Container::serializeItemNode_OTBM(const IOMap& maphandle, NodeFileWriteHandle& file) const
{
file.addNode(OTBM_ITEM);
file.addU16(g_items[id].clientID);
file.addU16(id);
if(maphandle.version.otbm == MAP_OTBM_1) {
// In the ludicrous event that an item is a container AND stackable, we have to do this. :p
const ItemType& type = g_items.getItemType(id);
Expand Down

0 comments on commit 974919c

Please sign in to comment.