Runtime Fix for:

The following runtime has occured 12 time(s).
runtime error: Cannot read null.buckled
proc name: manual unbuckle (/obj/structure/stool/bed/nest/manual_unbuckle)
  source file: nest.dm,18
  usr: null
  src: the alien nest (/obj/structure/stool/bed/nest)

Forgot to check if user still existed after a spawn() delay.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4568 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
elly1989@rocketmail.com
2012-08-27 19:27:12 +00:00
parent 0195f09059
commit 306a1ce1be
+1 -1
View File
@@ -15,7 +15,7 @@
"<span class='warning'>You struggle to break free from the gelatinous resin...</span>",\
"<span class='notice'>You hear squelching...</span>")
spawn(1200)
if(buckled_mob && user.buckled == src)
if(user && buckled_mob && user.buckled == src)
buckled_mob.pixel_y = 0
unbuckle()
src.add_fingerprint(user)