Kaynağa Gözat

Follow up to 10bac96
* Adjusted the directional check for script command pushpc.

aleos89 9 yıl önce
ebeveyn
işleme
af8524aa7d
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/map/script.c

+ 1 - 1
src/map/script.c

@@ -19244,7 +19244,7 @@ BUILDIN_FUNC(pushpc)
 	dir = script_getnum(st,2);
 	cells     = script_getnum(st,3);
 
-	if(dir>DIR_NORTHEAST)
+	if(dir >= DIR_MAX)
 	{
 		ShowWarning("buildin_pushpc: Invalid direction %d specified.\n", dir);
 		script_reportsrc(st);