Skip to content

Commit

Permalink
fix: syntax error (#37)
Browse files Browse the repository at this point in the history
Co-authored-by: Noahrav <noah@noahportable>
  • Loading branch information
noahrav and Noahrav authored Oct 30, 2024
1 parent 2c625ea commit 42bdb8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/multiplayer/packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class S2CPacket : public Packet {
static T Decode(std::string_view s);

template<>
int Decode(std::string_view s) {
int Decode<int>(std::string_view s) {
int r;
auto e = std::from_chars(s.data(), s.data() + s.size(), r);
//if (e.ec != std::errc())
Expand All @@ -74,7 +74,7 @@ class S2CPacket : public Packet {
}

template<>
bool Decode(std::string_view s) {
bool Decode<bool>(std::string_view s) {
if (s == "1")
return true;
//if (s == "0")
Expand Down

0 comments on commit 42bdb8a

Please sign in to comment.