Console error

On my server console for my jailbreak server it is spammed by this:

Bad pstudiohdr in GetSequenceLinearMotion()!

This also happens:

[ERROR] gamemodes/jailbreak/gamemode/core/cl_spectators.lua:42: attempt to index
 a nil value
  1. fn - gamemodes/jailbreak/gamemode/core/cl_spectators.lua:42
   2. unknown - addons/ulib/lua/ulib/shared/hook.lua:183

Line 42 of cl_spectators.lua:

	local spec = "You are spectating "..(LocalPlayer():GetObserverTarget():Nick() or "nobody").."."

Any ideas?

local spec = ""
if not IsValid(LocalPlayer():GetObserverTarget()) then
	spec = "You are not spectating."
	spec = "You are spectating " .. LocalPlayer():GetObserverTarget():Nick() .. "."

Untested, but it should do the trick.

Thanks worked.