mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Hopefully should fix some crashing for NTSL.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3413 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -255,7 +255,12 @@
|
||||
var/list/textList = new()
|
||||
var/searchPosition = 1
|
||||
var/findPosition = 1
|
||||
var/loops = 0
|
||||
while(1)
|
||||
if(loops >= 1000)
|
||||
break
|
||||
loops++
|
||||
|
||||
findPosition = findtext(text, separator, searchPosition, 0)
|
||||
var/buggyText = copytext(text, searchPosition, findPosition)
|
||||
if(!withinList || (buggyText in withinList)) textList += "[buggyText]"
|
||||
|
||||
Reference in New Issue
Block a user