fix crash on calling votes from autoexec

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4442 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2009-05-26 12:33:49 +00:00
parent fe9f8ca05d
commit 2aea13c150
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -950,7 +950,7 @@ void callvote(int type, char *arg1, char *arg2)
void scallvote(char *type, char *arg1, char *arg2)
{
if(type)
if(type && inmainloop)
{
int t = atoi(type);
if(t==SA_MAP) // FIXME