summaryrefslogtreecommitdiff
path: root/src/state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.cpp')
-rw-r--r--src/state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.cpp b/src/state.cpp
index 0d3b8636..87e85015 100644
--- a/src/state.cpp
+++ b/src/state.cpp
@@ -96,7 +96,7 @@ State::update()
msg.writeShort(od.second);
}
- if (msg.getDataSize() > 2)
+ if (msg.getLength() > 2)
gameHandler->sendTo(*p, msg);
}