diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index ee465f3f..04d67ae8 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -1405,7 +1405,7 @@ void callvote(int type, const char *arg1, const char *arg2, const char *arg3) sendpackettoserv(1, p.finalize()); if(identexists("onCallVote")) { - defformatstring(runas)("%s %d %d [%s] [%s]", "onCallVote", type, -1, arg1, arg2); + defformatstring(runas)("%s %d %d [%s] [%s]", "onCallVote", type, player1->clientnum, arg1, arg2); execute(runas); } } diff --git a/source/src/clients2c.cpp b/source/src/clients2c.cpp index e2b5928e..926441c6 100644 --- a/source/src/clients2c.cpp +++ b/source/src/clients2c.cpp @@ -1270,7 +1270,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p, bool demo = false) break; } displayvote(v); - onCallVote(type, vcn, text, a1); + onCallVote(type, v->owner->clientnum, text, a1); if (vcn >= 0) { loopi(n_yes) votecount(VOTE_YES);