[Bug]One bug in squirrel module


  • Sr. Member
  • Posts: 389
[Bug] One bug in squirrel module
«  »
The squirrel function GetShowOnlyTeamMarkers throws error on calling.
Code: [Select]
[SCRIPT]  Error: wrong number of parameters

Reason: I found myself in squirrel module source
Code: [Select]
.Func(_SC("GetShowOnlyTeamMarkers"), EnabledShowOnlyTeamMarkers, 2, _SC("tb"))

It is set to pass one 'b' bool as argument.

Accidently came upon it. noting it otherwise i will forget

Code: [Select]
.Func(_SC("PlaySoundForPlayer"), PlayGameSoundForPlayer)
.Func(_SC("PlaySoundForWorld"), PlayGameSoundForWorld)
params checking is not made in these two functions. Calling it with no arguments shut down the server.( happened to me yesterday, when i was making something else)