Skip to content

Commit

Permalink
Fix error 4
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Sep 20, 2024
1 parent 3cd94bc commit b96c55a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/msg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1700,12 +1700,12 @@ size_t OnTalkXY(const TCmd *pCmd, Player &player)
{
const auto &message = *reinterpret_cast<const TCmdLocParam1 *>(pCmd);
const Point position { message.x, message.y };
const uint16_t TownerIdx = SDL_SwapLE16(message.wParam1);
const uint16_t townerIdx = SDL_SwapLE16(message.wParam1);

if (gbBufferMsgs != 1 && player.isOnActiveLevel() && InDungeonBounds(position) && TownerIdx < NUM_TOWNERS) {
if (gbBufferMsgs != 1 && player.isOnActiveLevel() && InDungeonBounds(position) && townerIdx < NUM_TOWNERS) {
MakePlrPath(player, position, false);
player.destAction = ACTION_TALK;
player.destParam1 = TownerIdx;
player.destParam1 = townerIdx;
}

return sizeof(message);
Expand Down

0 comments on commit b96c55a

Please sign in to comment.