viewing paste ra_tetra_hotfix | Diff

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- Base (BASE)
+++ Locally Modified (Based On LOCAL)
@@ -4398,7 +4398,9 @@
 
            k = 0;
            for( i = 0; i < j; i++ ) { // Loop should always be 4 for regular players, but unconditional_skill could be less
-               switch( sc->data[spheres[i]]->val1 ) {
+               struct status_change_entry *sce = sc->data[spheres[i]];
+               if(sce == NULL) continue;
+               switch( sce->val1 ) {
                    case WLS_FIRE:  subskill = WL_TETRAVORTEX_FIRE; k |= 1; break;
                    case WLS_WIND:  subskill = WL_TETRAVORTEX_WIND; k |= 4; break;
                    case WLS_WATER: subskill = WL_TETRAVORTEX_WATER; k |= 2; break;
 
Viewed 1256 times, submitted by lighta.