fixed bad memmory alloc error
Merge branch 'NetworkTeam5' of github.com:gametechnology/psi-2013 into NetworkTeam5