[Bug]One bug in squirrel module

habi

  • Sr. Member
  • Posts: 389
[Bug] One bug in squirrel module
«  »
The squirrel function GetShowOnlyTeamMarkers throws error on calling.
Code: [Select]
GetShowOnlyTeamMarkers()
[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

Also,
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)