mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Merge pull request #1452 from Uristqwerty/master
Infinite loop fix for splitting on null
This commit is contained in:
@@ -1753,6 +1753,9 @@ proc/oview_or_orange(distance = world.view , center = usr , type)
|
||||
return
|
||||
|
||||
/proc/stringsplit(txt, character)
|
||||
if(length(character) < 1) //Do not infinite loop when splitting on "" or null
|
||||
return list(txt)
|
||||
|
||||
var/cur_text = txt
|
||||
var/last_found = 1
|
||||
var/found_char = findtext(cur_text,character)
|
||||
|
||||
Reference in New Issue
Block a user